sprint 1-alpha
Public Member Functions | Static Public Member Functions
sprint::detail::const_string< case_sensitive > Class Template Reference

#include <const_string.h>

List of all members.

Public Member Functions

 const_string (const char *_str)
 operator bool () const
 test if string is not null
 operator const char * () const
 cast to const char *
const char * c_str () const
 return the inner buffer (STL compability)
bool operator== (const char *c) const
bool operator== (const const_string< case_sensitive > &s) const
bool operator< (const char *string) const
bool operator< (const const_string< case_sensitive > &string) const
bool operator> (const char *string) const
bool operator> (const const_string< case_sensitive > &string) const

Static Public Member Functions

static int compare (const char *a, const char *b)
 the comparisong method

Detailed Description

template<bool case_sensitive>
class sprint::detail::const_string< case_sensitive >

Costant String. Usefull in stl::map and stl::sort algorithm.

This class handle the issue: 'Why waste extra memory, and not use directly const char *'


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines