
18 Jul
2025
18 Jul
'25
5:18 a.m.
On Fri, Jul 18, 2025 at 1:04 PM Andrey Semashev via Boost < boost@lists.boost.org> wrote:
If you still want this, make it a standalone utility in a separate header and not part of the core container interface.
It is impossible to implement member functions in separate header. I know you know this, I think you may have misunderstood what I was referring to since message I quoted contains multiple code snippets. To be clear this is the interface from proposal I think is great, beside the get name(although I must say I appreciate brevity since it is very commonly used). constexpr optional<mapped_type&> get(const key_type& x) noexcept; constexpr optional<const mapped_type&> get(const key_type& x) const noexcept;