std::bit_and<void>
提供: cppreference.com
< cpp | utility | functional
ヘッダ <functional> で定義
|
||
template<> class bit_and<void>; |
(C++14以上) | |
std::bit_and<> は引数と戻り値の型を推定する std::bit_and の特殊化です。
目次 |
[編集] メンバ型
メンバ型 | 定義 |
is_transparent
|
/* unspecified */ |
[編集] メンバ関数
operator() |
lhs と rhs に operator& を適用します (パブリックメンバ関数) |
std::bit_and<>::operator()
template< class T, class U> constexpr auto operator()( T&& lhs, U&& rhs ) const |
||
lhs & rhs
の結果を返します。
引数
lhs, rhs | - | ビット単位の論理積を計算する値 |
戻り値
lhs & rhs の結果。
[編集] ノート
メンバ型 is_transparent
はこの関数オブジェクトが透過的な関数オブジェクトである、つまり、任意の型の引数を受理し、不均一な分脈や右辺値引数で使用されたときに不要なコピーや変換を回避する完全転送を使用することを、呼び出し元に示します。 特に、 std::set::find や std::set::lower_bound のようなテンプレート関数は Compare
型についてこのメンバ型を使用します。
[編集] 例
This section is incomplete Reason: no example |