OSVR-Core
Public Member Functions | List of all members
osvr::util::DefaultBool< DefaultValue > Class Template Reference

A class template primarily useful for flags, that has a defined value at default initialization. More...

#include <DefaultBool.h>

Public Member Functions

 DefaultBool ()
 Default constructor, initializes value to specified default.
 
 operator bool () const
 Explicit conversion to bool.
 
DefaultBooloperator= (bool val)
 Assignment from a bool.
 
void reset ()
 Restore the default value.
 

Detailed Description

template<bool DefaultValue = false>
class osvr::util::DefaultBool< DefaultValue >

A class template primarily useful for flags, that has a defined value at default initialization.


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