codesearch.isocpp.org by Andrew Tomazos.
Enter a valid C/C++ code snippet...
Searching for `std::unexpected`
...
2489599 source files searched.
11 matches found.
Here is a random sample of matches...
actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-6/libcxx/test/libcxx/depr/exception.unexpected/unexpected_disabled_cpp17.fail.cpp:20:
int main() {
using T = std::unexpected_handler; // expected-error {{no type named 'unexpected_handler' in namespace 'std'}}
std::unexpected(); // expected-error {{no member named 'unexpected' in namespace 'std'}}
std::get_unexpected(); // expected-error {{no member named 'get_unexpected' in namespace 'std'}}
std::set_unexpected(f); // expected-error {{no type named 'set_unexpected' in namespace 'std'}}
actcd19/main/g/gcc-arm-none-eabi/gcc-arm-none-eabi_7-2018-q2-6/libstdc++-v3/libsupc++/eh_call.cc:110:
{
if (foreign_exception)
std::unexpected();
else
__unexpected(unexpectedHandler);
actcd19/main/g/gcc-arm-none-eabi/gcc-arm-none-eabi_7-2018-q2-6/libstdc++-v3/libsupc++/eh_personality.cc:668:
{
__try
{ std::unexpected (); }
__catch(...)
{ std::terminate (); }
actcd19/main/g/gcc-avr/gcc-avr_5.4.0+Atmel3.6.1-2/gcc/libstdc++-v3/libsupc++/eh_personality.cc:668:
{
__try
{ std::unexpected (); }
__catch(...)
{ std::terminate (); }
actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-8/libcxx/test/std/depr/exception.unexpected/unexpected/unexpected.pass.cpp:26:
{
std::set_unexpected(f1);
std::unexpected();
assert(false);
}
actcd19/main/a/ace/ace_6.4.5+dfsg-1/ace/Global_Macros.h:219:
# define ACE_UNEXPECTED(RETVAL) \
do { \
std::unexpected(); \
} while (0)
actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-8/libcxx/test/libcxx/depr/exception.unexpected/unexpected.pass.cpp:26:
{
std::set_unexpected(fexit);
std::unexpected();
assert(false);
}
actcd19/main/o/openvdb/openvdb_5.2.0-5/cmd/openvdb_lod/main.cc:383:
catch (...) {
OPENVDB_LOG_FATAL("Exception caught (unexpected type)");
std::unexpected();
}
actcd19/main/g/gcc-h8300-hms/gcc-h8300-hms_3.4.6+dfsg2-4/libstdc++-v3/libsupc++/eh_terminate.cc:64:
void
std::unexpected ()
{
__unexpected (__unexpected_handler);
actcd19/main/g/gcc-h8300-hms/gcc-h8300-hms_3.4.6+dfsg2-4/libstdc++-v3/libsupc++/eh_personality.cc:424:
{
try
{ std::unexpected (); }
catch(...)
{ std::terminate (); }
actcd19/main/g/gcc-avr/gcc-avr_5.4.0+Atmel3.6.1-2/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:68:
void
std::unexpected ()
{
__unexpected (get_unexpected ());