GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
名前空間 | クラス | 関数 | 変数
designlab::nostd 名前空間

名前空間

namespace  impl
 

クラス

class  bad_expected_access
 
class  expected
 自作の expected クラス [詳解]
 
class  unexpected
 

関数

template<typename T , typename... Args>
constexpr std::array< T, sizeof...(Args)> make_array (Args &&... args)
 std::arrayを作成する関数.
この関数を作成したモチベーションとしては, std::arrayを constexprで初期化する際に苦戦したため.
この関数を使うことで,std::arrayを constexprで初期化することができる.
例えば,std::array<int, 3>を作成する場合は, MakeArray<int>(1, 2, 3)とする.
 
template<typename E >
constexpr unexpected< std::decay_t< E > > make_unexpected (E &&e)
 
template<class E >
 unexpected (E) -> unexpected< E >
 
template<typename E >
constexpr bool operator== (const unexpected< E > &lhs, const unexpected< E > &rhs)
 
template<typename E >
constexpr bool operator!= (const unexpected< E > &lhs, const unexpected< E > &rhs)
 

変数

template<class T , class W >
constexpr bool converts_from_any_cvref
 

関数詳解

◆ make_array()

template<typename T , typename... Args>
constexpr std::array< T, sizeof...(Args)> designlab::nostd::make_array ( Args &&...  args)
constexpr

std::arrayを作成する関数.
この関数を作成したモチベーションとしては, std::arrayを constexprで初期化する際に苦戦したため.
この関数を使うことで,std::arrayを constexprで初期化することができる.
例えば,std::array<int, 3>を作成する場合は, MakeArray<int>(1, 2, 3)とする.

make_array.h22 行目に定義があります。

◆ make_unexpected()

template<typename E >
constexpr unexpected< std::decay_t< E > > designlab::nostd::make_unexpected ( E &&  e)
constexpr

my_unexpected.h89 行目に定義があります。

◆ operator!=()

template<typename E >
constexpr bool designlab::nostd::operator!= ( const unexpected< E > &  lhs,
const unexpected< E > &  rhs 
)
constexpr

my_unexpected.h103 行目に定義があります。

◆ operator==()

template<typename E >
constexpr bool designlab::nostd::operator== ( const unexpected< E > &  lhs,
const unexpected< E > &  rhs 
)
constexpr

my_unexpected.h98 行目に定義があります。

呼び出し関係図:

◆ unexpected()

template<class E >
designlab::nostd::unexpected ( ) -> unexpected< E >

変数詳解

◆ converts_from_any_cvref

template<class T , class W >
constexpr bool designlab::nostd::converts_from_any_cvref
constexpr
初期値:
= std::disjunction_v<
std::is_constructible<T, W&>, std::is_convertible<W&, T>,
std::is_constructible<T, W>, std::is_convertible<W, T>,
std::is_constructible<T, const W&>, std::is_convertible<const W&, T>,
std::is_constructible<T, const W>, std::is_convertible<const W, T>>

my_expected.h36 行目に定義があります。