12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- #ifndef BOOST_URL_GRAMMAR_UNSIGNED_RULE_HPP
- #define BOOST_URL_GRAMMAR_UNSIGNED_RULE_HPP
- #include <boost/url/detail/config.hpp>
- #include <boost/url/error_types.hpp>
- #include <boost/url/grammar/charset.hpp>
- #include <boost/core/detail/string_view.hpp>
- #include <boost/static_assert.hpp>
- #include <limits>
- #include <type_traits>
- namespace boost {
- namespace urls {
- namespace grammar {
- #ifdef BOOST_URL_DOCS
- template<class Unsigned>
- struct unsigned_rule;
- #else
- template<class Unsigned>
- struct unsigned_rule
- {
- BOOST_STATIC_ASSERT(
- std::numeric_limits<
- Unsigned>::is_integer &&
- ! std::numeric_limits<
- Unsigned>::is_signed);
- using value_type = Unsigned;
- auto
- parse(
- char const*& it,
- char const* end
- ) const noexcept ->
- system::result<value_type>;
- };
- #endif
- }
- }
- }
- #include <boost/url/grammar/impl/unsigned_rule.hpp>
- #endif
|