Namespaces
Variants
Views
Actions

std::bitset::to_ullong

From cppreference.com
< cpp‎ | utility‎ | bitset
Revision as of 17:34, 9 July 2013 by P12bot (Talk | contribs)

unsigned long long to_ullong() const
(since C++11)

Converts the contents of the bitset to an unsigned long long integer.

The first bit of the bitset corresponds to the least significant digit of the number and the last bit corresponds to the most significant digit.

Contents

Parameters

(none)

Return value

the converted integer

Exceptions

std::overflow_error if the value can not be represented in unsigned long long.

Example

See also

returns a string representation of the data
(public member function) [edit]
returns an unsigned long integer representation of the data
(public member function) [edit]