libstdc++
__gnu_cxx Namespace Reference

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 514 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 __versa_string< _CharT, _Traits, _Alloc, _Base > &  __rhs 
) [inline]

Test difference of two strings.

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

Definition at line 2245 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:
__lhsC string.
__rhsString.
Returns:
True if __rhs.compare(__lhs) != 0. False otherwise.

Definition at line 2258 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 _CharT *  __rhs 
) [inline]

Test difference of string and C string.

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

Definition at line 2271 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:
__lhsFirst string.
__rhsLast 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:
__lhsFirst string.
__rhsLast 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+ ( _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,
const _CharT *  __rhs 
)

Concatenate string and C string.

Parameters:
__lhsFirst string.
__rhsLast 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+ ( 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 __versa_string< _CharT, _Traits, _Alloc, _Base > &  __rhs 
) [inline]

Test if string precedes string.

Parameters:
__lhsFirst string.
__rhsSecond string.
Returns:
True if __lhs precedes __rhs. False otherwise.

Definition at line 2285 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 precedes C string.

Parameters:
__lhsString.
__rhsC string.
Returns:
True if __lhs precedes __rhs. False otherwise.

Definition at line 2298 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:
__lhsC string.
__rhsString.
Returns:
True if __lhs precedes __rhs. False otherwise.

Definition at line 2311 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 follow string.

Parameters:
__lhsFirst string.
__rhsSecond string.
Returns:
True if __lhs doesn't follow __rhs. False otherwise.

Definition at line 2365 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:
__lhsString.
__rhsC string.
Returns:
True if __lhs doesn't follow __rhs. False otherwise.

Definition at line 2378 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:
__lhsC string.
__rhsString.
Returns:
True if __lhs doesn't follow __rhs. False otherwise.

Definition at line 2391 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' comparison operators, when possible.

Definition at line 528 of file pointer.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 equivalence of two strings.

Parameters:
__lhsFirst string.
__rhsSecond string.
Returns:
True if __lhs.compare(__rhs) == 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 _CharT *  __lhs,
const __versa_string< _CharT, _Traits, _Alloc, _Base > &  __rhs 
) [inline]

Test equivalence of C string and string.

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

Definition at line 2218 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:
__lhsString.
__rhsC string.
Returns:
True if __lhs.compare(__rhs) == 0. False otherwise.

Definition at line 2231 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:
__lhsFirst string.
__rhsSecond string.
Returns:
True if __lhs follows __rhs. False otherwise.

Definition at line 2325 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:
__lhsString.
__rhsC string.
Returns:
True if __lhs follows __rhs. False otherwise.

Definition at line 2338 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:
__lhsC string.
__rhsString.
Returns:
True if __lhs follows __rhs. False otherwise.

Definition at line 2351 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:
__lhsFirst string.
__rhsSecond string.
Returns:
True if __lhs doesn't precede __rhs. False otherwise.

Definition at line 2405 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:
__lhsString.
__rhsC string.
Returns:
True if __lhs doesn't precede __rhs. False otherwise.

Definition at line 2418 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:
__lhsC string.
__rhsString.
Returns:
True if __lhs doesn't precede __rhs. False otherwise.

Definition at line 2431 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:
__lhsFirst string.
__rhsSecond string.

Exchanges the contents of __lhs and __rhs in constant time.

Definition at line 2445 of file vstring.h.

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