VRS
A file format for sensor data.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
vrs::Bool Class Reference

Substitute for bool POD type, which can be used safely in DataPiece templates. More...

#include <DataPieceTypes.h>

Public Member Functions

 Bool (bool value=false)
 
Booloperator= (bool value)
 
 operator bool () const
 
const bool * operator& () const
 
bool * operator& ()
 
bool operator== (const Bool &rhs) const
 
bool operator== (bool rhs) const
 
bool operator!= (const Bool &rhs) const
 
bool operator!= (bool rhs) const
 

Detailed Description

Substitute for bool POD type, which can be used safely in DataPiece templates.

Shamelessly fake bool class, to workaround vector<bool> NOT being a regular container. Should behave like a bool, except that vector<Bool> will be a regular vector. vector<bool> has no data() method, which means it can't be used with DataPiece template code. vector<Bool> does behave like other vector<T> classes. Yes, it's silly. https://stackoverflow.com/questions/17794569/why-isnt-vectorbool-a-stl-container


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