/home/ntakagi/work/STLport-5.1.5/stlport/stl/_string_npos.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2005
00003  * Francois Dumont
00004  *
00005  * This material is provided "as is", with absolutely no warranty expressed
00006  * or implied. Any use is at your own risk.
00007  *
00008  * Permission to use or copy this software for any purpose is hereby granted
00009  * without fee, provided the above notices are retained on all copies.
00010  * Permission to modify the code and to distribute modified code is granted,
00011  * provided the above notices are retained, and a notice that the code was
00012  * modified is included with the above copyright notice.
00013  */
00014 
00015 /* This header contains npos definition used in basic_string and rope
00016  * implementation. It do not have to be guarded as files including it
00017  * are already guarded and it has sometimes to be included several times.
00018  */
00019 
00020 #if defined (_STLP_STATIC_CONST_INIT_BUG)
00021   enum { npos = -1 };
00022 #elif defined (__GNUC__) && (__GNUC__ == 2) && (__GNUC_MINOR__ == 96)
00023   // inline initializer conflicts with 'extern template'
00024   static const size_t npos;
00025 #else
00026   static const size_t npos = ~(size_t)0;
00027 #endif



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