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

Functions

template<size_t Nb>
bitset< Nb > operator & (const bitset< Nb > &x, const bitset< Nb > &y)
 Global bitwise operations on bitsets.
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.


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> std::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_istream<CharT, Traits>& std::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::eofbit, std::ios_base::failbit, std::ios_base::goodbit, 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().


Generated on Wed May 25 01:37:49 2005 for libstdc++-v3 Source by  doxygen 1.4.2