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?

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
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 Wed, 31 Jul 2019 18:12:40 +0200
Lines 16
Message-ID <gqdsvpF2dnoU1@mid.individual.net> (permalink)
References <4563d007-9952-4efc-ad36-315d868724bc@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net FnTqMn1rwHldjyMdAl1LVAA3xgemStExmJ6d0z/otdcwLqZKRe
Cancel-Lock sha1:HVzv1+EKV6ypBlL/CSgYsE++p88=
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0
In-Reply-To <4563d007-9952-4efc-ad36-315d868724bc@googlegroups.com>
Content-Language sv
Xref csiph.com comp.lang.c++:67228

Show key headers only | 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