remove unneeded forward decl

master
Daniel Kolesa 2017-12-31 19:17:02 +01:00
parent 1a07db8bac
commit 48a7b45115
1 changed files with 11 additions and 13 deletions

View File

@ -70,19 +70,6 @@ namespace ostd {
* @{
*/
template<typename T> struct basic_char_range;
/** @brief A mutable slice over `char`. */
using char_range = basic_char_range<char>;
/** @brief An immutable slice over `char`.
*
* This is used in most libostd APIs that read strings. More or less
* anything is convertible to it, including mutable slices, so it's
* a perfect fit as long as modifications are not necessary.
*/
using string_range = basic_char_range<char const>;
/** @brief A string slice type.
*
* This is a contiguous range over a character type. The character type
@ -377,6 +364,17 @@ private:
T *p_beg, *p_end;
};
/** @brief A mutable slice over `char`. */
using char_range = basic_char_range<char>;
/** @brief An immutable slice over `char`.
*
* This is used in most libostd APIs that read strings. More or less
* anything is convertible to it, including mutable slices, so it's
* a perfect fit as long as modifications are not necessary.
*/
using string_range = basic_char_range<char const>;
/* comparisons between ranges */
/** @brief Like `!lhs.compare(rhs)`. */