@@ -20,7 +20,7 @@ namespace tao
2020 {
2121 namespace internal
2222 {
23- std::size_t token_to_index ( const std::string& key );
23+ std::size_t token_to_index ( const std::string& key ) noexcept ;
2424
2525 } // namespace internal
2626
@@ -38,7 +38,7 @@ namespace tao
3838 {
3939 }
4040
41- explicit token ( std::string&& in_key )
41+ explicit token ( std::string&& in_key ) noexcept
4242 : m_index( internal::token_to_index( in_key ) ),
4343 m_key( std::move( in_key ) )
4444 {
@@ -59,7 +59,7 @@ namespace tao
5959 return *this ;
6060 }
6161
62- const std::string& key () const
62+ const std::string& key () const noexcept
6363 {
6464 return m_key;
6565 }
@@ -72,12 +72,12 @@ namespace tao
7272 return m_index;
7373 }
7474
75- friend bool operator ==( const token& lhs, const token& rhs )
75+ friend bool operator ==( const token& lhs, const token& rhs ) noexcept
7676 {
7777 return lhs.m_key == rhs.m_key ;
7878 }
7979
80- friend bool operator <( const token& lhs, const token& rhs )
80+ friend bool operator <( const token& lhs, const token& rhs ) noexcept
8181 {
8282 return lhs.m_key < rhs.m_key ;
8383 }
@@ -222,7 +222,7 @@ namespace tao
222222
223223 namespace internal
224224 {
225- inline std::size_t token_to_index ( const std::string& key )
225+ inline std::size_t token_to_index ( const std::string& key ) noexcept
226226 {
227227 if ( !key.empty () && key.size () <= 20 ) {
228228 if ( key == " 0" ) {
0 commit comments