[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/cpp/utility/bitset/size [Back]  [Original]

std::bitset<N>::size cppreference.com
cppreference.com

std::bitset<N>::size

cppreference.com
 
C++
(C++20)
(C++20)
(C++11)
(C++20)
/
(C++11)
(C++11)
(C++11)
(C++17)
 
 
 
<tbody> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody>
std::size_t size() const;
( C++11)
constexpr std::size_t size() const noexcept;
( C++11)

, .

()

, , N

#include <bitset>
#include <iostream>

int main() {
    std::cout << std::bitset<0x400>().size() << '\n';
}

:

1024

, true
(public -) []

Web Proxy Viewer  |  New URL  |  Original Page