Namespaces | Classes | Typedefs | Enumerations | Functions | Variables

__gnu_cxx Namespace Reference

GNU extensions for public use. More...

Namespaces

Classes

Typedefs

Enumerations

Functions

Variables


Detailed Description

GNU extensions for public use.


Function Documentation

template<typename _ToType , typename _FromType >
_ToType __gnu_cxx::__static_pointer_cast ( const _FromType &  __arg  )  [inline]

Casting operations for cases where _FromType is not a standard pointer. _ToType can be a standard or non-standard pointer. Given that _FromType is not a pointer, it must have a get() method that returns the standard pointer equivalent of the address it points to, and must have an element_type typedef which names the type it points to.

Definition at line 68 of file cast.h.

template<typename _ToType , typename _FromType >
_ToType __gnu_cxx::__static_pointer_cast ( _FromType *  __arg  )  [inline]

Casting operations for cases where _FromType is a standard pointer. _ToType can be a standard or non-standard pointer.

Definition at line 96 of file cast.h.

size_t __gnu_cxx::_Bit_scan_forward ( size_t  __num  )  [inline]

Generic Version of the bsf instruction.

Definition at line 517 of file bitmap_allocator.h.

Referenced by __gnu_cxx::bitmap_allocator< _Tp >::_M_allocate_single_object().

template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
bool __gnu_cxx::operator!= ( const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __lhs,
const _CharT *  __rhs 
) [inline]

Test difference of string and C string.

Parameters:
__lhs String.
__rhs C string.
Returns:
True if __lhs.compare(__rhs) != 0. False otherwise.

Definition at line 2247 of file vstring.h.

template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
bool __gnu_cxx::operator!= ( const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __lhs,
const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __rhs 
) [inline]

Test difference of two strings.

Parameters:
__lhs First string.
__rhs Second string.
Returns:
True if __lhs.compare(__rhs) != 0. False otherwise.

Definition at line 2221 of file vstring.h.

template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
bool __gnu_cxx::operator!= ( const _CharT *  __lhs,
const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __rhs 
) [inline]

Test difference of C string and string.

Parameters:
__lhs C string.
__rhs String.
Returns:
True if __rhs.compare(__lhs) != 0. False otherwise.

Definition at line 2234 of file vstring.h.

template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
__versa_string< _CharT, _Traits, _Alloc, _Base > __gnu_cxx::operator+ ( const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __lhs,
const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __rhs 
)

Concatenate two strings.

Parameters:
__lhs First string.
__rhs Last string.
Returns:
New string with value of __lhs followed by __rhs.

Definition at line 181 of file vstring.tcc.

References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::append(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::reserve(), and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size().

template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
__versa_string< _CharT, _Traits, _Alloc, _Base > __gnu_cxx::operator+ ( const _CharT *  __lhs,
const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __rhs 
)

Concatenate C string and string.

Parameters:
__lhs First string.
__rhs Last string.
Returns:
New string with value of __lhs followed by __rhs.

Definition at line 194 of file vstring.tcc.

References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size().

template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
__versa_string< _CharT, _Traits, _Alloc, _Base > __gnu_cxx::operator+ ( const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __lhs,
const _CharT *  __rhs 
)

Concatenate string and C string.

Parameters:
__lhs First string.
__rhs Last string.
Returns:
New string with __lhs followed by __rhs.

Definition at line 224 of file vstring.tcc.

References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size().

template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
__versa_string< _CharT, _Traits, _Alloc, _Base > __gnu_cxx::operator+ ( _CharT  __lhs,
const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __rhs 
)
template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
__versa_string< _CharT, _Traits, _Alloc, _Base > __gnu_cxx::operator+ ( const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __lhs,
_CharT  __rhs 
)
template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
bool __gnu_cxx::operator< ( const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __lhs,
const _CharT *  __rhs 
) [inline]

Test if string precedes C string.

Parameters:
__lhs String.
__rhs C string.
Returns:
True if __lhs precedes __rhs. False otherwise.

Definition at line 2274 of file vstring.h.

template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
bool __gnu_cxx::operator< ( const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __lhs,
const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __rhs 
) [inline]

Test if string precedes string.

Parameters:
__lhs First string.
__rhs Second string.
Returns:
True if __lhs precedes __rhs. False otherwise.

Definition at line 2261 of file vstring.h.

template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
bool __gnu_cxx::operator< ( const _CharT *  __lhs,
const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __rhs 
) [inline]

Test if C string precedes string.

Parameters:
__lhs C string.
__rhs String.
Returns:
True if __lhs precedes __rhs. False otherwise.

Definition at line 2287 of file vstring.h.

References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::compare().

template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
bool __gnu_cxx::operator<= ( const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __lhs,
const _CharT *  __rhs 
) [inline]

Test if string doesn't follow C string.

Parameters:
__lhs String.
__rhs C string.
Returns:
True if __lhs doesn't follow __rhs. False otherwise.

Definition at line 2354 of file vstring.h.

template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
bool __gnu_cxx::operator<= ( const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __lhs,
const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __rhs 
) [inline]

Test if string doesn't follow string.

Parameters:
__lhs First string.
__rhs Second string.
Returns:
True if __lhs doesn't follow __rhs. False otherwise.

Definition at line 2341 of file vstring.h.

template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
bool __gnu_cxx::operator<= ( const _CharT *  __lhs,
const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __rhs 
) [inline]

Test if C string doesn't follow string.

Parameters:
__lhs C string.
__rhs String.
Returns:
True if __lhs doesn't follow __rhs. False otherwise.

Definition at line 2367 of file vstring.h.

References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::compare().

template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
bool __gnu_cxx::operator== ( const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __lhs,
const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __rhs 
) [inline]

Test equivalence of two strings.

Parameters:
__lhs First string.
__rhs Second string.
Returns:
True if __lhs.compare(__rhs) == 0. False otherwise.

Definition at line 2170 of file vstring.h.

References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::compare().

template<typename _Tp >
bool __gnu_cxx::operator== ( const _Pointer_adapter< _Tp > &  __lhs,
const _Pointer_adapter< _Tp > &  __rhs 
) [inline]

Comparison operators for _Pointer_adapter defer to the base class'es comparison operators, when possible.

Definition at line 533 of file pointer.h.

template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
bool __gnu_cxx::operator== ( const _CharT *  __lhs,
const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __rhs 
) [inline]

Test equivalence of C string and string.

Parameters:
__lhs C string.
__rhs String.
Returns:
True if __rhs.compare(__lhs) == 0. False otherwise.

Definition at line 2194 of file vstring.h.

References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::compare().

template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
bool __gnu_cxx::operator== ( const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __lhs,
const _CharT *  __rhs 
) [inline]

Test equivalence of string and C string.

Parameters:
__lhs String.
__rhs C string.
Returns:
True if __lhs.compare(__rhs) == 0. False otherwise.

Definition at line 2207 of file vstring.h.

References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::compare().

template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
bool __gnu_cxx::operator> ( const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __lhs,
const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __rhs 
) [inline]

Test if string follows string.

Parameters:
__lhs First string.
__rhs Second string.
Returns:
True if __lhs follows __rhs. False otherwise.

Definition at line 2301 of file vstring.h.

References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::compare().

template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
bool __gnu_cxx::operator> ( const _CharT *  __lhs,
const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __rhs 
) [inline]

Test if C string follows string.

Parameters:
__lhs C string.
__rhs String.
Returns:
True if __lhs follows __rhs. False otherwise.

Definition at line 2327 of file vstring.h.

References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::compare().

template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
bool __gnu_cxx::operator> ( const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __lhs,
const _CharT *  __rhs 
) [inline]

Test if string follows C string.

Parameters:
__lhs String.
__rhs C string.
Returns:
True if __lhs follows __rhs. False otherwise.

Definition at line 2314 of file vstring.h.

References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::compare().

template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
bool __gnu_cxx::operator>= ( const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __lhs,
const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __rhs 
) [inline]

Test if string doesn't precede string.

Parameters:
__lhs First string.
__rhs Second string.
Returns:
True if __lhs doesn't precede __rhs. False otherwise.

Definition at line 2381 of file vstring.h.

References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::compare().

template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
bool __gnu_cxx::operator>= ( const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __lhs,
const _CharT *  __rhs 
) [inline]

Test if string doesn't precede C string.

Parameters:
__lhs String.
__rhs C string.
Returns:
True if __lhs doesn't precede __rhs. False otherwise.

Definition at line 2394 of file vstring.h.

References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::compare().

template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
bool __gnu_cxx::operator>= ( const _CharT *  __lhs,
const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __rhs 
) [inline]

Test if C string doesn't precede string.

Parameters:
__lhs C string.
__rhs String.
Returns:
True if __lhs doesn't precede __rhs. False otherwise.

Definition at line 2407 of file vstring.h.

References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::compare().

template<typename _CharT , typename _Traits , typename _Alloc , template< typename, typename, typename > class _Base>
void __gnu_cxx::swap ( __versa_string< _CharT, _Traits, _Alloc, _Base > &  __lhs,
__versa_string< _CharT, _Traits, _Alloc, _Base > &  __rhs 
) [inline]

Swap contents of two strings.

Parameters:
__lhs First string.
__rhs Second string.

Exchanges the contents of __lhs and __rhs in constant time.

Definition at line 2421 of file vstring.h.

References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::swap().