/home/ntakagi/work/STLport-5.1.5/stlport/bitset

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 1998
00003  * Silicon Graphics Computer Systems, Inc.
00004  *
00005  * Copyright (c) 1999
00006  * Boris Fomitchev
00007  *
00008  * This material is provided "as is", with absolutely no warranty expressed
00009  * or implied. Any use is at your own risk.
00010  *
00011  * Permission to use or copy this software for any purpose is hereby granted
00012  * without fee, provided the above notices are retained on all copies.
00013  * Permission to modify the code and to distribute modified code is granted,
00014  * provided the above notices are retained, and a notice that the code was
00015  * modified is included with the above copyright notice.
00016  *
00017  */
00018 
00019 #ifndef _STLP_BITSET
00020 #define _STLP_BITSET
00021 
00022 // This implementation of bitset<> has a second template parameter,
00023 // _WordT, which defaults to unsigned long.  *YOU SHOULD NOT USE
00024 // THIS FEATURE*.  It is experimental, and it may be removed in
00025 // future releases.
00026 
00027 // A bitset of size N, using words of type _WordT, will have
00028 // N % (sizeof(_WordT) * CHAR_BIT) unused bits.  (They are the high-
00029 // order bits in the highest word.)  It is a class invariant
00030 // of class bitset<> that those unused bits are always zero.
00031 
00032 // Most of the actual code isn't contained in bitset<> itself, but in the
00033 // base class _Base_bitset.  The base class works with whole words, not with
00034 // individual bits.  This allows us to specialize _Base_bitset for the
00035 // important special case where the bitset is only a single word.
00036 
00037 // The C++ standard does not define the precise semantics of operator[].
00038 // In this implementation the const version of operator[] is equivalent
00039 // to test(), except that it does no range checking.  The non-const version
00040 // returns a reference to a bit, again without doing any range checking.
00041 
00042 #ifndef _STLP_OUTERMOST_HEADER_ID
00043 #  define _STLP_OUTERMOST_HEADER_ID 0x2
00044 #  include <stl/_prolog.h>
00045 #endif
00046 
00047 #ifdef _STLP_PRAGMA_ONCE
00048 #  pragma once
00049 #endif
00050 
00051 #include <stl/_bitset.h>
00052 
00053 #if (_STLP_OUTERMOST_HEADER_ID == 0x2 )
00054 #  include <stl/_epilog.h>
00055 #  undef _STLP_OUTERMOST_HEADER_ID
00056 #endif
00057 
00058 #endif /* _STLP_BITSET */
00059 
00060 // Local Variables:
00061 // mode:C++
00062 // End:
00063 



Generated on Mon Mar 10 15:32:17 2008 by  doxygen 1.5.1