class params_view#

class params_view#

A type for dealing with mime parameters.

Public Functions

params_view() = default#

The default constructor creates an empty view.

inline params_view(std::initializer_list<value_type> init)#

Construct the view by a list of key/value pairs.

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(name_view name) const noexcept -> bool#

Checks whether the container contains element with specific key.

inline void clear() noexcept#

Clear the contents.

inline void set(name_view name, name_view value)#

Insert new element or update value of existing element with specific key.

inline auto get(name_view name) noexcept -> optional<mapped_type>#

Get value with specific key.

inline auto get(name_view name) const noexcept -> optional<mapped_type>#

Get value with specific key.

inline auto erase(name_view name) -> optional<mapped_type>#

Remove element with specific key.

inline auto at(name_view name) -> mapped_type&#

Get value with specific key.

inline auto at(name_view name) const -> const mapped_type&#

Get value with specific key.

inline auto operator[](name_view name) -> mapped_type&#

Get or insert specific element.

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.