This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <memory> | |
#include <shared_mutex> | |
/* | |
* std::shared_mutex + T value wrapper written out of boredom. | |
* Needs C++17 support to compile. | |
* | |
* It phohibits direct manipulation of T value without locking the mutex in |