#include <trie_map.hpp>
String trait that uses std::string as the key type. This trait can be used with mdds::trie_map or mdds::packed_trie_map.
type used to build an intermediate string value, from which a final string object is to be created.
type that represents a single character inside a string or a buffer object. A string object is expected to store a series of characters of this type.
type used to store a final string content.
static buffer_type mdds::trie::std_string_trait::init_buffer |
( |
const char_type * |
str, |
|
|
size_t |
length |
|
) |
| |
|
inlinestatic |
Function called to create and initialize a buffer object from a given initial string value.
- Parameters
-
str | pointer to the first character of string value. |
length | length of the string value. |
- Returns
- buffer object containing the specified string value.
static void mdds::trie::std_string_trait::pop_back |
( |
buffer_type & |
buffer | ) |
|
|
inlinestatic |
Function called to remove a single character from the tail of an existing string buffer.
- Parameters
-
buffer | buffer object to remove character from. |
Function called to append a single character to the end of a string buffer.
- Parameters
-
buffer | buffer object to append character to. |
c | character to append to the buffer. |
Function called to create a final string object from an existing buffer.
- Parameters
-
buf | buffer object to create a final string object from. |
- Returns
- string object whose content is created from the buffer object.