GNU g++  v5.2.1
GNU Standard C++
cast.h File Reference

This is an internal header file, included by other library headers. More...

This graph shows which files directly or indirectly include this file:

Functions

namespace __gnu_cxx _GLIBCXX_VISIBILITY (default)
 

Detailed Description

This is an internal header file, included by other library headers.

Do not attempt to use it directly. {ext/pointer.h}

Function Documentation

namespace __gnu_cxx _GLIBCXX_VISIBILITY ( default  )

These functions are here to allow containers to support non standard pointer types. For normal pointers, these resolve to the use of the standard cast operation. For other types the functions will perform the appropriate cast to/from the custom pointer class so long as that class meets the following conditions: 1) has a typedef element_type which names tehe type it points to. 2) has a get() const method which returns element_type*. 3) has a constructor which can take one element_type* argument.

This type supports the semantics of the pointer cast operators (below.)

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.

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