|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
位引用类,用于返回可修改的引用 更多...
#include <bitset.hpp>
Public 成员函数 | |
| constexpr | reference (bitset &set, const size_t position) noexcept |
| 构造函数 | |
| constexpr reference & | operator= (const bool value) noexcept |
| 赋值操作符(bool版本) | |
| constexpr reference & | operator= (const reference &value) noexcept |
| 赋值操作符(引用版本) | |
| constexpr | operator bool () const noexcept |
| 转换为bool | |
| constexpr reference & | flip () noexcept |
| 翻转该位 | |
位引用类,用于返回可修改的引用
模拟对单个位的引用,允许赋值、转换和翻转操作。
在文件 bitset.hpp 第 42 行定义.
|
inlineconstexprnoexcept |
构造函数
| set | bitset引用 |
| position | 位位置 |
在文件 bitset.hpp 第 53 行定义.
引用了 bitset< N >::bitset() , 以及 bitset< N >::set().
被这些函数引用 flip(), operator=() , 以及 operator=().