JASL  [1.2.0]-2018-09-11
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends | List of all members
jasl::inner::string_view_bridge< string_viewT > Class Template Reference

Public Types

typedef string_viewT bridge_to_type
 
typedef string_viewT::traits_type traits_type
 
typedef string_viewT::value_type value_type
 
typedef string_viewT::pointer pointer
 
typedef string_viewT::const_pointer const_pointer
 
typedef string_viewT::reference reference
 
typedef string_viewT::const_reference const_reference
 
typedef string_viewT::const_iterator const_iterator
 
typedef string_viewT::iterator iterator
 
typedef string_viewT::const_reverse_iterator const_reverse_iterator
 
typedef string_viewT::reverse_iterator reverse_iterator
 
typedef string_viewT::size_type size_type
 
typedef string_viewT::difference_type difference_type
 

Public Member Functions

 operator string_viewT () const noexcept
 
constexpr const_iterator begin () const noexcept(noexcept(std::declval< string_viewT >().begin()))
 
constexpr const_iterator end () const noexcept(noexcept(std::declval< string_viewT >().end()))
 
constexpr const_iterator cbegin () const noexcept(noexcept(std::declval< string_viewT >().cbegin()))
 
constexpr const_iterator cend () const noexcept(noexcept(std::declval< string_viewT >().cend()))
 
const_reverse_iterator rbegin () const noexcept(noexcept(std::declval< string_viewT >().rbegin()))
 
const_reverse_iterator rend () const noexcept(noexcept(std::declval< string_viewT >().rend()))
 
const_reverse_iterator crbegin () const noexcept(noexcept(std::declval< string_viewT >().crbegin()))
 
const_reverse_iterator crend () const noexcept(noexcept(std::declval< string_viewT >().crend()))
 
constexpr size_type size () const noexcept(noexcept(std::declval< string_viewT >().size()))
 
constexpr size_type length () const noexcept(noexcept(std::declval< string_viewT >().length()))
 
constexpr size_type max_size () const noexcept(noexcept(std::declval< string_viewT >().max_size()))
 
constexpr bool empty () const noexcept(noexcept(std::declval< string_viewT >().empty()))
 
constexpr const_reference operator[] (size_type pos) const noexcept(noexcept(std::declval< string_viewT >()[pos]))
 
constexpr const_reference at (size_type pos) const noexcept(noexcept(std::declval< string_viewT >().at(pos)))
 
constexpr const_reference front () const noexcept(noexcept(std::declval< string_viewT >().front()))
 
constexpr const_reference back () const noexcept(noexcept(std::declval< string_viewT >().back()))
 
constexpr const_pointer data () const noexcept(noexcept(std::declval< string_viewT >().data()))
 
JASL_CONSTEXPR_CXX14 void remove_prefix (size_type n) noexcept(noexcept(std::declval< string_viewT >().remove_prefix(n)))
 
JASL_CONSTEXPR_CXX14 void remove_suffix (size_type n) noexcept(noexcept(std::declval< string_viewT >().remove_suffix(n)))
 
size_type copy (value_type *s, size_type n) const noexcept(noexcept(std::declval< string_viewT >().copy(s, n)))
 
size_type copy (value_type *s, size_type n, size_type pos) const noexcept(noexcept(std::declval< string_viewT >().copy(s, n, pos)))
 
constexpr string_view_bridge substr (size_type pos) const noexcept(noexcept(std::declval< string_viewT >().substr(pos)) &&std::is_nothrow_copy_constructible< string_viewT >::value &&std::is_nothrow_copy_constructible< string_view_bridge >::value)
 
constexpr string_view_bridge substr (size_type pos, size_type n) const noexcept(noexcept(std::declval< string_viewT >().substr(pos, n)) &&std::is_nothrow_copy_constructible< string_viewT >::value &&std::is_nothrow_copy_constructible< string_view_bridge >::value)
 
constexpr int compare (string_view_bridge s) const noexcept(noexcept(std::declval< string_viewT >().compare(s._sv)))
 
constexpr int compare (size_type pos1, size_type n1, string_view_bridge s) const noexcept(noexcept(std::declval< string_viewT >().compare(pos1, n1, s._sv)))
 
constexpr int compare (size_type pos1, size_type n1, string_view_bridge s, size_type pos2, size_type n2) const noexcept(noexcept(std::declval< string_viewT >().compare(pos1, n1, s._sv, pos2, n2)))
 
constexpr int compare (const value_type *s) const noexcept(noexcept(std::declval< string_viewT >().compare(s)))
 
constexpr int compare (size_type pos1, size_type n1, const value_type *s) const noexcept(noexcept(std::declval< string_viewT >().compare(pos1, n1, s)))
 
constexpr int compare (size_type pos1, size_type n1, const value_type *s, size_type n2) const noexcept(noexcept(std::declval< string_viewT >().compare(pos1, n1, s, n2)))
 
constexpr size_type find (string_view_bridge s) const noexcept(noexcept(std::declval< string_viewT >().find(s._sv)))
 
constexpr size_type find (string_view_bridge s, size_type pos) const noexcept(noexcept(std::declval< string_viewT >().find(s._sv, pos)))
 
constexpr size_type find (value_type c) const noexcept(noexcept(std::declval< string_viewT >().find(c)))
 
constexpr size_type find (value_type c, size_type pos) const noexcept(noexcept(std::declval< string_viewT >().find(c, pos)))
 
constexpr size_type find (const value_type *s, size_type pos, size_type n) const noexcept(noexcept(std::declval< string_viewT >().find(s, pos, n)))
 
constexpr size_type find (const value_type *s) const noexcept(noexcept(std::declval< string_viewT >().find(s)))
 
constexpr size_type find (const value_type *s, size_type pos) const noexcept(noexcept(std::declval< string_viewT >().find(s, pos)))
 
constexpr size_type rfind (string_view_bridge s) const noexcept(noexcept(std::declval< string_viewT >().rfind(s._sv)))
 
constexpr size_type rfind (string_view_bridge s, size_type pos) const noexcept(noexcept(std::declval< string_viewT >().rfind(s._sv, pos)))
 
constexpr size_type rfind (value_type c) const noexcept(noexcept(std::declval< string_viewT >().rfind(c)))
 
constexpr size_type rfind (value_type c, size_type pos) const noexcept(noexcept(std::declval< string_viewT >().rfind(c, pos)))
 
constexpr size_type rfind (const value_type *s, size_type pos, size_type n) const noexcept(noexcept(std::declval< string_viewT >().rfind(s, pos, n)))
 
constexpr size_type rfind (const value_type *s) const noexcept(noexcept(std::declval< string_viewT >().rfind(s)))
 
constexpr size_type rfind (const value_type *s, size_type pos) const noexcept(noexcept(std::declval< string_viewT >().rfind(s, pos)))
 
constexpr size_type find_first_of (string_view_bridge s) const noexcept(noexcept(std::declval< string_viewT >().find_first_of(s._sv)))
 
constexpr size_type find_first_of (string_view_bridge s, size_type pos) const noexcept(noexcept(std::declval< string_viewT >().find_first_of(s._sv, pos)))
 
constexpr size_type find_first_of (value_type c) const noexcept(noexcept(std::declval< string_viewT >().find_first_of(c)))
 
constexpr size_type find_first_of (value_type c, size_type pos) const noexcept(noexcept(std::declval< string_viewT >().find_first_of(c, pos)))
 
constexpr size_type find_first_of (const value_type *s, size_type pos, size_type n) const noexcept(noexcept(std::declval< string_viewT >().find_first_of(s, pos, n)))
 
constexpr size_type find_first_of (const value_type *s) const noexcept(noexcept(std::declval< string_viewT >().find_first_of(s)))
 
constexpr size_type find_first_of (const value_type *s, size_type pos) const noexcept(noexcept(std::declval< string_viewT >().find_first_of(s, pos)))
 
constexpr size_type find_last_of (string_view_bridge s) const noexcept(noexcept(std::declval< string_viewT >().find_last_of(s._sv)))
 
constexpr size_type find_last_of (string_view_bridge s, size_type pos) const noexcept(noexcept(std::declval< string_viewT >().find_last_of(s._sv, pos)))
 
constexpr size_type find_last_of (value_type c) const noexcept(noexcept(std::declval< string_viewT >().find_last_of(c)))
 
constexpr size_type find_last_of (value_type c, size_type pos) const noexcept(noexcept(std::declval< string_viewT >().find_last_of(c, pos)))
 
constexpr size_type find_last_of (const value_type *s, size_type pos, size_type n) const noexcept(noexcept(std::declval< string_viewT >().find_last_of(s, pos, n)))
 
constexpr size_type find_last_of (const value_type *s) const noexcept(noexcept(std::declval< string_viewT >().find_last_of(s)))
 
constexpr size_type find_last_of (const value_type *s, size_type pos) const noexcept(noexcept(std::declval< string_viewT >().find_last_of(s, pos)))
 
constexpr size_type find_first_not_of (string_view_bridge s) const noexcept(noexcept(std::declval< string_viewT >().find_first_not_of(s._sv)))
 
constexpr size_type find_first_not_of (string_view_bridge s, size_type pos) const noexcept(noexcept(std::declval< string_viewT >().find_first_not_of(s._sv, pos)))
 
constexpr size_type find_first_not_of (value_type c) const noexcept(noexcept(std::declval< string_viewT >().find_first_not_of(c)))
 
constexpr size_type find_first_not_of (value_type c, size_type pos) const noexcept(noexcept(std::declval< string_viewT >().find_first_not_of(c, pos)))
 
constexpr size_type find_first_not_of (const value_type *s, size_type pos, size_type n) const noexcept(noexcept(std::declval< string_viewT >().find_first_not_of(s, pos, n)))
 
constexpr size_type find_first_not_of (const value_type *s) const noexcept(noexcept(std::declval< string_viewT >().find_first_not_of(s)))
 
constexpr size_type find_first_not_of (const value_type *s, size_type pos) const noexcept(noexcept(std::declval< string_viewT >().find_first_not_of(s, pos)))
 
constexpr size_type find_last_not_of (string_view_bridge s) const noexcept(noexcept(std::declval< string_viewT >().find_last_not_of(s._sv)))
 
constexpr size_type find_last_not_of (string_view_bridge s, size_type pos) const noexcept(noexcept(std::declval< string_viewT >().find_last_not_of(s._sv, pos)))
 
constexpr size_type find_last_not_of (value_type c) const noexcept(noexcept(std::declval< string_viewT >().find_last_not_of(c)))
 
constexpr size_type find_last_not_of (value_type c, size_type pos) const noexcept(noexcept(std::declval< string_viewT >().find_last_not_of(c, pos)))
 
constexpr size_type find_last_not_of (const value_type *s, size_type pos, size_type n) const noexcept(noexcept(std::declval< string_viewT >().find_last_not_of(s, pos, n)))
 
constexpr size_type find_last_not_of (const value_type *s) const noexcept(noexcept(std::declval< string_viewT >().find_last_not_of(s)))
 
constexpr size_type find_last_not_of (const value_type *s, size_type pos) const noexcept(noexcept(std::declval< string_viewT >().find_last_not_of(s, pos)))
 
constexpr bool starts_with (string_view_bridge s) const noexcept(noexcept(std::declval< string_viewT >().starts_with(s._sv)))
 
constexpr bool starts_with (value_type c) const noexcept(noexcept(std::declval< string_viewT >().starts_with(c)))
 
constexpr bool starts_with (const value_type *s) const noexcept(noexcept(std::declval< string_viewT >().starts_with(s)))
 
constexpr bool ends_with (string_view_bridge s) const noexcept(noexcept(std::declval< string_viewT >().ends_with(s._sv)))
 
constexpr bool ends_with (value_type c) const noexcept(noexcept(std::declval< string_viewT >().ends_with(c)))
 
constexpr bool ends_with (const value_type *s) const noexcept(noexcept(std::declval< string_viewT >().ends_with(s)))
 

Static Public Attributes

static constexpr size_type npos = string_viewT::npos
 

Protected Member Functions

constexpr string_view_bridge (string_viewT s) noexcept(std::is_nothrow_constructible< string_viewT, string_viewT >::value)
 
constexpr string_view_bridge (const string_view_bridge &s) noexcept(std::is_nothrow_copy_constructible< string_viewT >::value)=default
 
constexpr string_view_bridge (const value_type *str) noexcept(std::is_nothrow_constructible< string_viewT, const value_type *>::value)
 
constexpr string_view_bridge (const value_type *str, size_type len) noexcept(std::is_nothrow_constructible< string_viewT, const value_type *, size_type >::value)
 
string_view_bridgeoperator= (const string_view_bridge &) noexcept(std::is_nothrow_copy_assignable< string_viewT >::value)=default
 
JASL_CONSTEXPR_CXX14 void swap (string_view_bridge &s) noexcept(noexcept(std::declval< string_viewT >().swap(s._sv)))
 
JASL_CONSTEXPR_CXX14 void set (const value_type *str, size_type len) noexcept(is_nothrow_settable)
 

Protected Attributes

string_viewT _sv
 

Static Protected Attributes

static constexpr bool is_nothrow_settable
 

Friends

struct ::std::hash< string_view_bridge >
 
JASL_CONSTEXPR_CXX14 bool operator== (const string_view_bridge< string_viewT > &x, const string_view_bridge< string_viewT > &y) noexcept(noexcept(x._sv==y._sv))
 
JASL_CONSTEXPR_CXX14 bool operator!= (const string_view_bridge< string_viewT > &x, const string_view_bridge< string_viewT > &y) noexcept(noexcept(x._sv !=y._sv))
 
JASL_CONSTEXPR_CXX14 bool operator< (const string_view_bridge< string_viewT > &x, const string_view_bridge< string_viewT > &y) noexcept(noexcept(x._sv< y._sv))
 
JASL_CONSTEXPR_CXX14 bool operator> (const string_view_bridge< string_viewT > &x, const string_view_bridge< string_viewT > &y) noexcept(noexcept(x._sv > y._sv))
 
JASL_CONSTEXPR_CXX14 bool operator<= (const string_view_bridge< string_viewT > &x, const string_view_bridge< string_viewT > &y) noexcept(noexcept(x._sv<=y._sv))
 
JASL_CONSTEXPR_CXX14 bool operator>= (const string_view_bridge< string_viewT > &x, const string_view_bridge< string_viewT > &y) noexcept(noexcept(x._sv >=y._sv))
 
JASL_CONSTEXPR_CXX14 bool operator== (const string_view_bridge< string_viewT > &x, const string_viewT &y) noexcept(noexcept(x._sv==y))
 
JASL_CONSTEXPR_CXX14 bool operator!= (const string_view_bridge< string_viewT > &x, const string_viewT &y) noexcept(noexcept(x._sv !=y))
 
JASL_CONSTEXPR_CXX14 bool operator< (const string_view_bridge< string_viewT > &x, const string_viewT &y) noexcept(noexcept(x._sv< y))
 
JASL_CONSTEXPR_CXX14 bool operator> (const string_view_bridge< string_viewT > &x, const string_viewT &y) noexcept(noexcept(x._sv > y))
 
JASL_CONSTEXPR_CXX14 bool operator<= (const string_view_bridge< string_viewT > &x, const string_viewT &y) noexcept(noexcept(x._sv<=y))
 
JASL_CONSTEXPR_CXX14 bool operator>= (const string_view_bridge< string_viewT > &x, const string_viewT &y) noexcept(noexcept(x._sv >=y))
 
JASL_CONSTEXPR_CXX14 bool operator== (const string_viewT &x, const string_view_bridge< string_viewT > &y) noexcept(noexcept(x==y._sv))
 
JASL_CONSTEXPR_CXX14 bool operator!= (const string_viewT &x, const string_view_bridge< string_viewT > &y) noexcept(noexcept(x !=y._sv))
 
JASL_CONSTEXPR_CXX14 bool operator< (const string_viewT &x, const string_view_bridge< string_viewT > &y) noexcept(noexcept(x< y._sv))
 
JASL_CONSTEXPR_CXX14 bool operator> (const string_viewT &x, const string_view_bridge< string_viewT > &y) noexcept(noexcept(x > y._sv))
 
JASL_CONSTEXPR_CXX14 bool operator<= (const string_viewT &x, const string_view_bridge< string_viewT > &y) noexcept(noexcept(x<=y._sv))
 
JASL_CONSTEXPR_CXX14 bool operator>= (const string_viewT &x, const string_view_bridge< string_viewT > &y) noexcept(noexcept(x >=y._sv))
 
std::basic_ostream< value_type, traits_type > & operator<< (std::basic_ostream< value_type, traits_type > &os, const string_view_bridge< string_viewT > &str)
 

Member Data Documentation

◆ is_nothrow_settable

template<typename string_viewT>
constexpr bool jasl::inner::string_view_bridge< string_viewT >::is_nothrow_settable
staticprotected
Initial value:
=
std::is_nothrow_assignable<string_viewT, string_viewT>::value &&
std::is_nothrow_constructible<string_viewT,
const value_type*,
size_type>::value

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