lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
Public Types | Static Public Member Functions
lean::strings::string_traits< String > Struct Template Reference

Provides common string functionality for the given string type. More...

#include <string_traits.h>

List of all members.

Public Types

typedef String string_type
 String type.
typedef string_type::value_type value_type
 Character type,.
typedef string_type::iterator iterator
 Iterator type.
typedef string_type::const_iterator const_iterator
 Const iterator type.
typedef string_type::size_type size_type
 Size type.

Static Public Member Functions

template<class Iterator >
static LEAN_INLINE string_type construct (Iterator begin, Iterator end)
 Constructs a string from the given range.
template<class Iterator >
static LEAN_INLINE void assign (string_type &str, Iterator begin, Iterator end)
 Assigns the given range to the given string.
static LEAN_INLINE void resize (string_type &str, size_type size)
 Resizes the given string.
static LEAN_INLINE void reserve (string_type &str, size_type size)
 Reserves the given amount of space.
static LEAN_INLINE void erase (string_type &str, iterator begin, iterator end)
 Erases the given range of characters.
static LEAN_INLINE bool empty (const string_type &str)
 Checks if the given string is empty.
static LEAN_INLINE size_type size (const string_type &str)
 Gets the size of the given string.
static LEAN_INLINE iterator begin (string_type &str)
 Gets the beginning of the given range.
static LEAN_INLINE const_iterator begin (const string_type &str)
 Gets the beginning of the given range.
static LEAN_INLINE iterator end (string_type &str)
 Gets the end of the given range.
static LEAN_INLINE const_iterator end (const string_type &str)
 Gets the end of the given range.

Detailed Description

template<class String>
struct lean::strings::string_traits< String >

Provides common string functionality for the given string type.


The documentation for this struct was generated from the following file: