diff --git a/doc/reference.md b/doc/reference.md index cf37f0e..0cbd4ae 100644 --- a/doc/reference.md +++ b/doc/reference.md @@ -57,7 +57,7 @@ constexpr optional enum_cast(underlying_type_t value) noexcept; ## `enum_value` ```cpp template -constexpr E enum_value(std::size_t index) noexcept; +constexpr E enum_value(size_t index) noexcept; ``` * Returns enum value at specified index. @@ -118,10 +118,10 @@ constexpr underlying_type_t enum_integer(E value) noexcept; ## `enum_name` ```cpp template -constexpr std::string_view enum_name(E value) noexcept; +constexpr string_view enum_name(E value) noexcept; template -constexpr std::string_view enum_name() noexcept; +constexpr string_view enum_name() noexcept; ``` * Returns `std::string_view`. If enum value does not have name, returns empty string. @@ -147,7 +147,7 @@ constexpr std::string_view enum_name() noexcept; ## `enum_names` ```cpp template -constexpr array enum_names() noexcept; +constexpr array enum_names() noexcept; ``` * Returns `std::array` with all string enum name where `N = number of enum values`, sorted by enum value. @@ -162,7 +162,7 @@ constexpr array enum_names() noexcept; ## `enum_entries` ```cpp template -constexpr array, N> enum_entries() noexcept; +constexpr array, N> enum_entries() noexcept; ``` * Returns `std::array, N>` with all `std::pair` (value enum, string enum name) where `N = number of enum values`, sorted by enum value. @@ -244,10 +244,10 @@ using underlying_type_t = typename underlying_type::type; ## `ostream_operators` ```cpp template -std::basic_ostream& operator<<(std::basic_ostream& os, E value); +basic_ostream& operator<<(basic_ostream& os, E value); template -std::basic_ostream& operator<<(std::basic_ostream& os, std::optional value); +basic_ostream& operator<<(basic_ostream& os, optional value); ``` * Out-of-the-box ostream operators for enums.