Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::basic_string_ref< charT, traits > Singleton Reference

#include <string_ref_fwd.hpp>

Public Types

typedef charT value_type
 
typedef const charT * pointer
 
typedef const charT & reference
 
typedef const charT & const_reference
 
typedef pointer const_iterator
 
typedef const_iterator iterator
 
typedef std::reverse_iterator
< const_iterator
const_reverse_iterator
 
typedef const_reverse_iterator reverse_iterator
 
typedef std::size_t size_type
 
typedef std::ptrdiff_t difference_type
 

Public Member Functions

BOOST_CONSTEXPR basic_string_ref ()
 
BOOST_CONSTEXPR basic_string_ref (const basic_string_ref &rhs)
 
basic_string_refoperator= (const basic_string_ref &rhs)
 
 basic_string_ref (const charT *str)
 
template<typename Allocator >
 basic_string_ref (const std::basic_string< charT, traits, Allocator > &str)
 
BOOST_CONSTEXPR basic_string_ref (const charT *str, size_type len)
 
template<typename Allocator >
 operator std::basic_string< charT, traits, Allocator > () const
 
std::basic_string< charT, traits > to_string () const
 
BOOST_CONSTEXPR const_iterator begin () const
 
BOOST_CONSTEXPR const_iterator cbegin () const
 
BOOST_CONSTEXPR const_iterator end () const
 
BOOST_CONSTEXPR const_iterator cend () const
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator crbegin () const
 
const_reverse_iterator rend () const
 
const_reverse_iterator crend () const
 
BOOST_CONSTEXPR size_type size () const
 
BOOST_CONSTEXPR size_type length () const
 
BOOST_CONSTEXPR size_type max_size () const
 
BOOST_CONSTEXPR bool empty () const
 
BOOST_CONSTEXPR const charT & operator[] (size_type pos) const
 
const charT & at (size_t pos) const
 
BOOST_CONSTEXPR const charT & front () const
 
BOOST_CONSTEXPR const charT & back () const
 
BOOST_CONSTEXPR const charT * data () const
 
void clear ()
 
void remove_prefix (size_type n)
 
void remove_suffix (size_type n)
 
basic_string_ref substr (size_type pos, size_type n=npos) const
 
int compare (basic_string_ref x) const
 
bool starts_with (charT c) const
 
bool starts_with (basic_string_ref x) const
 
bool ends_with (charT c) const
 
bool ends_with (basic_string_ref x) const
 
size_type find (basic_string_ref s) const
 
size_type find (charT c) const
 
size_type rfind (basic_string_ref s) const
 
size_type rfind (charT c) const
 
size_type find_first_of (charT c) const
 
size_type find_last_of (charT c) const
 
size_type find_first_of (basic_string_ref s) const
 
size_type find_last_of (basic_string_ref s) const
 
size_type find_first_not_of (basic_string_ref s) const
 
size_type find_first_not_of (charT c) const
 
size_type find_last_not_of (basic_string_ref s) const
 
size_type find_last_not_of (charT c) const
 

Static Public Attributes

static
BOOST_CONSTEXPR_OR_CONST
size_type 
npos = size_type(-1)
 

Member Typedef Documentation

template<typename charT, typename traits>
typedef pointer boost::basic_string_ref< charT, traits >::const_iterator
template<typename charT, typename traits>
typedef const charT& boost::basic_string_ref< charT, traits >::const_reference
template<typename charT, typename traits>
typedef std::reverse_iterator<const_iterator> boost::basic_string_ref< charT, traits >::const_reverse_iterator
template<typename charT, typename traits>
typedef std::ptrdiff_t boost::basic_string_ref< charT, traits >::difference_type
template<typename charT, typename traits>
typedef const_iterator boost::basic_string_ref< charT, traits >::iterator
template<typename charT, typename traits>
typedef const charT* boost::basic_string_ref< charT, traits >::pointer
template<typename charT, typename traits>
typedef const charT& boost::basic_string_ref< charT, traits >::reference
template<typename charT, typename traits>
typedef const_reverse_iterator boost::basic_string_ref< charT, traits >::reverse_iterator
template<typename charT, typename traits>
typedef std::size_t boost::basic_string_ref< charT, traits >::size_type
template<typename charT, typename traits>
typedef charT boost::basic_string_ref< charT, traits >::value_type

Constructor & Destructor Documentation

template<typename charT, typename traits>
BOOST_CONSTEXPR boost::basic_string_ref< charT, traits >::basic_string_ref ( )
inline
template<typename charT, typename traits>
BOOST_CONSTEXPR boost::basic_string_ref< charT, traits >::basic_string_ref ( const basic_string_ref< charT, traits > &  rhs)
inline
template<typename charT, typename traits>
boost::basic_string_ref< charT, traits >::basic_string_ref ( const charT *  str)
inline
template<typename charT, typename traits>
template<typename Allocator >
boost::basic_string_ref< charT, traits >::basic_string_ref ( const std::basic_string< charT, traits, Allocator > &  str)
inline
template<typename charT, typename traits>
BOOST_CONSTEXPR boost::basic_string_ref< charT, traits >::basic_string_ref ( const charT *  str,
size_type  len 
)
inline

Member Function Documentation

template<typename charT, typename traits>
const charT& boost::basic_string_ref< charT, traits >::at ( size_t  pos) const
inline

References BOOST_THROW_EXCEPTION.

template<typename charT, typename traits>
BOOST_CONSTEXPR const charT& boost::basic_string_ref< charT, traits >::back ( ) const
inline
template<typename charT, typename traits>
BOOST_CONSTEXPR const_iterator boost::basic_string_ref< charT, traits >::begin ( void  ) const
inline
template<typename charT, typename traits>
void boost::basic_string_ref< charT, traits >::clear ( void  )
inline
template<typename charT, typename traits>
int boost::basic_string_ref< charT, traits >::compare ( basic_string_ref< charT, traits >  x) const
inline
template<typename charT, typename traits>
BOOST_CONSTEXPR const charT* boost::basic_string_ref< charT, traits >::data ( ) const
inline
template<typename charT, typename traits>
BOOST_CONSTEXPR bool boost::basic_string_ref< charT, traits >::empty ( void  ) const
inline
template<typename charT, typename traits>
BOOST_CONSTEXPR const_iterator boost::basic_string_ref< charT, traits >::end ( void  ) const
inline
template<typename charT, typename traits>
bool boost::basic_string_ref< charT, traits >::ends_with ( charT  c) const
inline
template<typename charT, typename traits>
bool boost::basic_string_ref< charT, traits >::ends_with ( basic_string_ref< charT, traits >  x) const
inline

References compare().

template<typename charT, typename traits>
size_type boost::basic_string_ref< charT, traits >::find_first_not_of ( basic_string_ref< charT, traits >  s) const
inline
template<typename charT, typename traits>
size_type boost::basic_string_ref< charT, traits >::find_first_of ( charT  c) const
inline
template<typename charT, typename traits>
size_type boost::basic_string_ref< charT, traits >::find_last_not_of ( basic_string_ref< charT, traits >  s) const
inline
template<typename charT, typename traits>
size_type boost::basic_string_ref< charT, traits >::find_last_of ( charT  c) const
inline
template<typename charT, typename traits>
BOOST_CONSTEXPR const charT& boost::basic_string_ref< charT, traits >::front ( void  ) const
inline
template<typename charT, typename traits>
BOOST_CONSTEXPR size_type boost::basic_string_ref< charT, traits >::length ( ) const
inline
template<typename charT, typename traits>
BOOST_CONSTEXPR size_type boost::basic_string_ref< charT, traits >::max_size ( void  ) const
inline
template<typename charT, typename traits>
template<typename Allocator >
boost::basic_string_ref< charT, traits >::operator std::basic_string< charT, traits, Allocator > ( ) const
inlineexplicit
template<typename charT, typename traits>
basic_string_ref& boost::basic_string_ref< charT, traits >::operator= ( const basic_string_ref< charT, traits > &  rhs)
inline
template<typename charT, typename traits>
BOOST_CONSTEXPR const charT& boost::basic_string_ref< charT, traits >::operator[] ( size_type  pos) const
inline
template<typename charT, typename traits>
const_reverse_iterator boost::basic_string_ref< charT, traits >::rbegin ( ) const
inline
template<typename charT, typename traits>
void boost::basic_string_ref< charT, traits >::remove_prefix ( size_type  n)
inline

References boost::n.

template<typename charT, typename traits>
void boost::basic_string_ref< charT, traits >::remove_suffix ( size_type  n)
inline

References boost::n.

template<typename charT, typename traits>
const_reverse_iterator boost::basic_string_ref< charT, traits >::rend ( ) const
inline
template<typename charT, typename traits>
size_type boost::basic_string_ref< charT, traits >::rfind ( charT  c) const
inline
template<typename charT, typename traits>
BOOST_CONSTEXPR size_type boost::basic_string_ref< charT, traits >::size ( void  ) const
inline
template<typename charT, typename traits>
bool boost::basic_string_ref< charT, traits >::starts_with ( charT  c) const
inline
template<typename charT, typename traits>
bool boost::basic_string_ref< charT, traits >::starts_with ( basic_string_ref< charT, traits >  x) const
inline

References compare().

template<typename charT, typename traits>
std::basic_string<charT, traits> boost::basic_string_ref< charT, traits >::to_string ( ) const
inline

Member Data Documentation


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