class path_info
#
-
class path_info#
Provides access to the path parameters.
Public Functions
-
inline auto match_pattern() const noexcept -> const std::string&#
Get match pattern, i.e.
/api/v1/users/{user}
.
-
inline auto match_path() const noexcept -> const std::string&#
Get match path, i.e.
/api/v1/users/fitoria
.
-
inline auto keys() const -> keys_type#
Get names of the parameters.
-
inline auto empty() const noexcept -> bool#
Check whether the container is empty.
-
inline auto size() const noexcept -> size_type#
Get the number of key/value pairs.
-
inline auto max_size() const noexcept -> size_type#
Get the maximum possible number of key/value pairs.
-
inline auto contains(const std::string &name) const noexcept -> bool#
Checks whether the container contains element with specific key.
-
template<typename Key>
inline auto get(Key &&key) const noexcept -> optional<const mapped_type&># Get value with specific key.
-
inline auto get(std::size_t index) const noexcept -> optional<const mapped_type&>#
Get value with specific index.
-
inline auto at(const std::string &name) const -> const mapped_type&#
Get value with specific key.
-
inline auto at(std::size_t index) const -> const mapped_type&#
Get value with specific index.
-
inline auto find(const std::string &name) const -> map_type::const_iterator#
Get an iterator to the specific key.
-
inline auto find(std::size_t index) const -> map_type::const_iterator#
Get an iterator to the specific index.
-
inline auto begin() noexcept -> iterator#
Get an iterator to the beginning.
-
inline auto begin() const noexcept -> const_iterator#
Get an iterator to the beginning.
-
inline auto cbegin() const noexcept -> const_iterator#
Get an iterator to the beginning.
-
inline auto end() noexcept -> iterator#
Get an iterator to the end.
-
inline auto end() const noexcept -> const_iterator#
Get an iterator to the end.
-
inline auto cend() const noexcept -> const_iterator#
Get an iterator to the end.
-
class const_iterator_impl#
-
inline auto match_pattern() const noexcept -> const std::string&#