Gromacs  2024.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
gmx::BoolType Struct Reference

#include <gromacs/utility/include/gromacs/utility/booltype.h>

Description

A clone of a bool as a workaround on the template specialization of std::vector<bool> that is incompatible with ArrayRef.

Use when you need to create an ArrayRef on a vector of boolean values.

Note
In contrast to bool this type is always initialized to false.

Public Member Functions

 BoolType (bool value)
 Allow implicit construction from plain bool.
 
constexpr operator bool () const
 Conversion to bool.
 

Public Attributes

bool value_ = false
 

The documentation for this struct was generated from the following files: