bitset File Reference

#include <cstddef>
#include <cstring>
#include <string>
#include <bits/functexcept.h>
#include <ostream>
#include <istream>

Include dependency graph for bitset:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  std

Classes

class  std::bitset< Nb >
 The bitset class represents a fixed-size sequence of bits. More...
class  std::bitset< Nb >::reference


Detailed Description

This is a Standard C++ Library header. You should #include this header in your programs, rather than any of the "st[dl]_*.h" implementation files.

Definition in file bitset.


Function Documentation

template<size_t Nb>
bitset<Nb> operator & const bitset< Nb > &  x,
const bitset< Nb > &  y
[inline]
 

Global bitwise operations on bitsets.

Parameters:
x A bitset.
y A bitset of the same size as x.
Returns:
A new bitset.
These should be self-explanatory. Definition at line 1153 of file bitset.

template<class CharT, class Traits, size_t Nb>
basic_ostream<CharT, Traits>& operator<< basic_ostream< CharT, Traits > &  __os,
const bitset< Nb > &  x
 

Global I/O operators for bitsets.

Direct I/O between streams and bitsets is supported. Output is straightforward. Input will skip whitespace, only accept '0' and '1' characters, and will only extract as many digits as the bitset will hold. Definition at line 1241 of file bitset.

template<class CharT, class Traits, size_t Nb>
basic_istream<CharT, Traits>& operator>> basic_istream< CharT, Traits > &  __is,
bitset< Nb > &  x
 

Global I/O operators for bitsets.

Direct I/O between streams and bitsets is supported. Output is straightforward. Input will skip whitespace, only accept '0' and '1' characters, and will only extract as many digits as the bitset will hold. Definition at line 1190 of file bitset.

References std::basic_string< CharT, Traits, Alloc >::empty(), std::ios_base::iostate, std::basic_ios< CharT, Traits >::narrow(), std::basic_string< CharT, Traits, Alloc >::push_back(), std::basic_ios< CharT, Traits >::rdbuf(), std::basic_string< CharT, Traits, Alloc >::reserve(), std::basic_streambuf< CharT, Traits >::sbumpc(), std::basic_ios< CharT, Traits >::setstate(), and std::basic_streambuf< CharT, Traits >::sputbackc().

template<size_t Nb>
bitset<Nb> operator^ const bitset< Nb > &  x,
const bitset< Nb > &  y
[inline]
 

Global bitwise operations on bitsets.

Parameters:
x A bitset.
y A bitset of the same size as x.
Returns:
A new bitset.
These should be self-explanatory. Definition at line 1171 of file bitset.

template<size_t Nb>
bitset<Nb> operator| const bitset< Nb > &  x,
const bitset< Nb > &  y
[inline]
 

Global bitwise operations on bitsets.

Parameters:
x A bitset.
y A bitset of the same size as x.
Returns:
A new bitset.
These should be self-explanatory. Definition at line 1162 of file bitset.


Generated on Wed Aug 4 21:43:25 2004 for libstdc++-v3 Source by doxygen 1.3.8