#include <unixstl/system/environment_variable.hpp>
C | The character type | |
T | The traits type. Defaults to system_traits<C>. On translators that do not support default template arguments, it must be explicitly stipulated | |
A | The allocator class. Defaults to stlsoft::allocator_selector<C>::allocator_type. On translators that do not support default template arguments, it is not part of the template parameter list. |
Public Types | |
typedef C | char_type |
The char type. | |
typedef T | traits_type |
The traits type. | |
typedef A | allocator_type |
The allocator type. | |
typedef basic_environment_variable< C, T, A > | class_type |
The current parameterisation of the type. | |
typedef size_t | size_type |
The size type. | |
typedef us_ptrdiff_t | difference_type |
The difference type. | |
Public Member Functions | |
basic_environment_variable (char_type const *name) | |
Create an instance representing the given environment variable. | |
template<typename S> | |
basic_environment_variable (S const &name) | |
Create an instance representing the given environment variable. | |
operator char_type const * () const | |
Implicit conversion to a non-mutable (const) pointer to the variable. | |
size_type | length () const |
Returns the length of the variable. |
typedef C char_type |
The char type.
typedef T traits_type |
The traits type.
typedef A allocator_type |
The allocator type.
typedef basic_environment_variable<C, T, A> class_type |
The current parameterisation of the type.
typedef size_t size_type |
The size type.
typedef us_ptrdiff_t difference_type |
The difference type.
basic_environment_variable | ( | char_type const * | name | ) | [inline, explicit] |
Create an instance representing the given environment variable.
basic_environment_variable | ( | S const & | name | ) | [inline, explicit] |
Create an instance representing the given environment variable.
References unixstl::c_str_ptr(), and stlsoft_ns_qual.
operator char_type const * | ( | ) | const [inline] |
Implicit conversion to a non-mutable (const) pointer to the variable.
size_type length | ( | ) | const [inline] |
Returns the length of the variable.