STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
rope File Reference
#include <algorithm>
#include <iosfwd>
#include <bits/stl_construct.h>
#include <bits/stl_uninitialized.h>
#include <bits/stl_function.h>
#include <bits/stl_numeric.h>
#include <bits/allocator.h>
#include <bits/gthr.h>
#include <tr1/functional>
#include <ext/memory>
#include <ext/ropeimpl.h>

Macros

#define _ROPE   1
 
#define __GC_CONST
 
#define __ROPE_DEFINE_ALLOCS(__a)
 
#define __STATIC_IF_SGI_ALLOC   /* not static */
 
#define __ROPE_DEFINE_ALLOC(_Tp, __name)
 
#define __STL_FREE_STRING(__s, __l, __a)   _S_free_string(__s, __l, __a);
 
#define __ROPE_DEFINE_ALLOC(_Tp, __name)
 
#define __STL_ROPE_FROM_UNOWNED_CHAR_PTR(__s, __size, __a)   _S_RopeLeaf_from_unowned_char_ptr(__s, __size, __a)
 

Functions

namespace __gnu_cxx _GLIBCXX_VISIBILITY (default)
 
namespace std _GLIBCXX_VISIBILITY (default)
 

Detailed Description

This file is a GNU extension to the Standard C++ Library (possibly containing extensions from the HP/SGI STL subset).

Macro Definition Documentation

#define __GC_CONST
#define __ROPE_DEFINE_ALLOC (   _Tp,
  __name 
)
Value:
typedef typename \
_Alloc::template rebind<_Tp>::other __name##Alloc; \
static _Tp* __name##_allocate(size_t __n) \
{ return __name##Alloc().allocate(__n); } \
static void __name##_deallocate(_Tp *__p, size_t __n) \
{ __name##Alloc().deallocate(__p, __n); }
#define __ROPE_DEFINE_ALLOC (   _Tp,
  __name 
)
Value:
typedef typename \
_Alloc::template rebind<_Tp>::other __name##Alloc; \
static _Tp* __name##_allocate(size_t __n) \
{ return __name##Alloc().allocate(__n); } \
static void __name##_deallocate(_Tp *__p, size_t __n) \
{ __name##Alloc().deallocate(__p, __n); }
#define __ROPE_DEFINE_ALLOCS (   __a)
Value:
__ROPE_DEFINE_ALLOC(_CharT,_Data) /* character data */ \
typedef _Rope_RopeConcatenation<_CharT,__a> __C; \
typedef _Rope_RopeLeaf<_CharT,__a> __L; \
typedef _Rope_RopeFunction<_CharT,__a> __F; \
typedef _Rope_RopeSubstring<_CharT,__a> __S; \
#define __S(__i)
__inline __m128d __m128i __C
Definition: avxintrin.h:576
#define __ROPE_DEFINE_ALLOC(_Tp, __name)
__inline __m256 float float float float float __F
Definition: avxintrin.h:1189
#define __STATIC_IF_SGI_ALLOC   /* not static */
#define __STL_FREE_STRING (   __s,
  __l,
  __a 
)    _S_free_string(__s, __l, __a);
#define __STL_ROPE_FROM_UNOWNED_CHAR_PTR (   __s,
  __size,
  __a 
)    _S_RopeLeaf_from_unowned_char_ptr(__s, __size, __a)
#define _ROPE   1

Function Documentation

namespace std _GLIBCXX_VISIBILITY ( default  )
2939 {
2940 namespace tr1
2941 {
2942 _GLIBCXX_BEGIN_NAMESPACE_VERSION
2943 
2944  template<>
2945  struct hash<__gnu_cxx::crope>
2946  {
2947  size_t
2948  operator()(const __gnu_cxx::crope& __str) const
2949  {
2950  size_t __size = __str.size();
2951  if (0 == __size)
2952  return 0;
2953  return 13 * __str[0] + 5 * __str[__size - 1] + __size;
2954  }
2955  };
2956 
2957 
2958  template<>
2959  struct hash<__gnu_cxx::wrope>
2960  {
2961  size_t
2962  operator()(const __gnu_cxx::wrope& __str) const
2963  {
2964  size_t __size = __str.size();
2965  if (0 == __size)
2966  return 0;
2967  return 13 * __str[0] + 5 * __str[__size - 1] + __size;
2968  }
2969  };
2970 
2971 _GLIBCXX_END_NAMESPACE_VERSION
2972 } // namespace tr1
2973 } // namespace std
std::size_t __size(__stack_t __stack)
Definition: profiler_node.h:68