Nuspell
spellchecker
Public Member Functions | List of all members
nuspell::String_Pair< CharT > Class Template Reference

Public Member Functions

template<class Str1 >
 String_Pair (Str1 &&str, size_t i)
 Construct string pair. More...
 
template<class Str1 , class Str2 , class = std::enable_if_t< std::is_same<std::remove_reference_t<Str1>, StrT>::value && std::is_same<std::remove_reference_t<Str2>, StrT>::value>>
 String_Pair (Str1 &&first, Str2 &&second)
 
auto first () const
 
auto second () const
 
auto first (my_string_view< CharT > x)
 
auto second (my_string_view< CharT > x)
 
auto & str () const
 
auto idx () const
 

Constructor & Destructor Documentation

◆ String_Pair()

template<class CharT>
template<class Str1 >
nuspell::String_Pair< CharT >::String_Pair ( Str1 &&  str,
size_t  i 
)
inline

Construct string pair.

Constructs a string pair from a single string containing a pair of strings and an index where the split resides.

Parameters
strthe string that can be split into a pair.
ithe index where the string is split.
Exceptions
std::out_of_range

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