|
MeshKernel
|
Boolean value designed for use in std::vector. More...
#include <Definitions.hpp>
Public Member Functions | |
| Boolean ()=default | |
| Default constructor. | |
| Boolean (const bool val) | |
| Constructor. | |
| Boolean & | operator= (const bool val) |
| Assignment operator. | |
| operator bool () const | |
| Type conversion operator. | |
Boolean value designed for use in std::vector.
This is needed to ensure thread safety when writing to an std::vector of Boolean (bool) values. The template specialisation of std::vector<bool> has resulted in unsafe multithreaded writes to an object of this type. See RM 23.2.2