OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::YesNo< Tag > Struct Template Reference

Yes/No パラメータのためのユーティリティクラス More...

#include <YesNo.hpp>

Public Member Functions

constexpr SIV3D_NODISCARD_CXX20 YesNo (bool yesNo) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 YesNo (Helper helper) noexcept
 
constexpr operator bool () const noexcept
 
constexpr bool getBool () const noexcept
 

Static Public Attributes

static constexpr Helper Yes { true }
 Yes を示す定数 More...
 
static constexpr Helper No { false }
 No を示す定数 More...
 

Detailed Description

template<class Tag>
struct s3d::YesNo< Tag >

Yes/No パラメータのためのユーティリティクラス

Template Parameters
Tagタグ名

Constructor & Destructor Documentation

◆ YesNo() [1/2]

template<class Tag >
constexpr SIV3D_NODISCARD_CXX20 s3d::YesNo< Tag >::YesNo ( bool  yesNo)
inlineexplicitconstexprnoexcept

◆ YesNo() [2/2]

template<class Tag >
constexpr SIV3D_NODISCARD_CXX20 s3d::YesNo< Tag >::YesNo ( Helper  helper)
inlineconstexprnoexcept

Member Function Documentation

◆ getBool()

template<class Tag >
constexpr bool s3d::YesNo< Tag >::getBool ( ) const
inlineconstexprnoexcept

◆ operator bool()

template<class Tag >
constexpr s3d::YesNo< Tag >::operator bool ( ) const
inlineexplicitconstexprnoexcept

Member Data Documentation

◆ No

template<class Tag >
constexpr Helper s3d::YesNo< Tag >::No { false }
staticconstexpr

No を示す定数

◆ Yes

template<class Tag >
constexpr Helper s3d::YesNo< Tag >::Yes { true }
staticconstexpr

Yes を示す定数


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