Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #67228

Re: Is there a reason that the std::map contains() function lacks a noexcept specifier?

From Bo Persson <bo@bo-persson.se>
Newsgroups comp.lang.c++
Subject Re: Is there a reason that the std::map contains() function lacks a noexcept specifier?
Date 2019-07-31 18:12 +0200
Message-ID <gqdsvpF2dnoU1@mid.individual.net> (permalink)
References <4563d007-9952-4efc-ad36-315d868724bc@googlegroups.com>

Show all headers | View raw


On 2019-07-31 at 16:10, Daniel wrote:
> The cppreference documentation doesn't identify any exceptions.
> 
> https://en.cppreference.com/w/cpp/container/map/contains
> 
> Thanks,
> Daniel
> 

The function itself is perhaps unlikely to throw any exceptions, but any 
comparisons would use the Compare template parameter which is not 
limited to noexcept operations.


     Bo Persson

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Is there a reason that the std::map contains() function lacks a noexcept specifier? Daniel <danielaparker@gmail.com> - 2019-07-31 07:10 -0700
  Re: Is there a reason that the std::map contains() function lacks a noexcept specifier? Bo Persson <bo@bo-persson.se> - 2019-07-31 18:12 +0200
    Re: Is there a reason that the std::map contains() function lacks a noexcept specifier? Daniel <danielaparker@gmail.com> - 2019-07-31 20:29 -0700
  Re: Is there a reason that the std::map contains() function lacks a noexcept specifier? Öö Tiib <ootiib@hot.ee> - 2019-07-31 14:55 -0700
    Re: Is there a reason that the std::map contains() function lacks a noexcept specifier? Jorgen Grahn <grahn+nntp@snipabacken.se> - 2019-08-01 05:44 +0000
      Re: Is there a reason that the std::map contains() function lacks a noexcept specifier? Fraser Ross <fraser.ross8ATbtinternet.com@com> - 2019-08-01 09:18 +0100
        Re: Is there a reason that the std::map contains() function lacks a noexcept specifier? Öö Tiib <ootiib@hot.ee> - 2019-08-01 03:04 -0700

csiph-web