Loading [MathJax]/extensions/tex2jax.js
MeshKernel
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages Concepts
Public Member Functions | List of all members
meshkernel::Boolean Class Reference

Boolean value designed for use in std::vector. More...

#include <Definitions.hpp>

Public Member Functions

 Boolean ()=default
 Default constructor.
 
 Boolean (const bool val)
 Constructor.
 
Booleanoperator= (const bool val)
 Assignment operator.
 
 operator bool () const
 Type conversion operator.
 

Detailed Description

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


The documentation for this class was generated from the following file: