bitset File Reference

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

Include dependency graph for bitset:

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

Go to the source code of this file.

Namespaces

namespace  std


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::basic_string< CharT, Traits, Alloc >::push_back(), std::basic_string< CharT, Traits, Alloc >::reserve(), std::basic_streambuf< CharT, Traits >::sbumpc(), 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 Thu Feb 10 23:23:03 2005 for libstdc++-v3 Source by  doxygen 1.4.0