OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:bad_alloc
(Results
1 - 25
of
69
) sorted by null
1
2
3
/external/libcxx/test/std/language.support/support.dynamic/alloc.errors/bad.alloc/
bad_alloc.pass.cpp
10
// test
bad_alloc
18
static_assert((std::is_base_of<std::exception, std::
bad_alloc
>::value),
19
"std::is_base_of<std::exception, std::
bad_alloc
>::value");
20
static_assert(std::is_polymorphic<std::
bad_alloc
>::value,
21
"std::is_polymorphic<std::
bad_alloc
>::value");
22
std::
bad_alloc
b;
23
std::
bad_alloc
b2 = b;
/external/libcxxabi/src/
stdlib_exception.cpp
40
//
bad_alloc
42
bad_alloc
::
bad_alloc
() _NOEXCEPT
46
bad_alloc
::~
bad_alloc
() _NOEXCEPT
51
bad_alloc
::what() const _NOEXCEPT
53
return "std::
bad_alloc
";
/external/clang/test/CXX/basic/basic.stc/basic.stc.dynamic/
p2-noexceptions.cpp
4
class
bad_alloc
{ };
class in namespace:std
p2.cpp
17
class
bad_alloc
{ };
class in namespace:std
22
void* operator new(std::size_t) throw(std::
bad_alloc
); // expected-note{{previous declaration}}
23
void* operator new[](std::size_t) throw(std::
bad_alloc
);
27
void* operator new(std::size_t); // expected-warning{{'operator new' is missing exception specification 'throw(std::
bad_alloc
)'}}
/external/deqp/framework/delibs/decpp/
deThreadLocal.cpp
35
throw std::
bad_alloc
();
deMemPool.hpp
71
throw std::
bad_alloc
();
78
throw std::
bad_alloc
();
92
throw std::
bad_alloc
();
102
throw std::
bad_alloc
();
deMutex.cpp
46
throw std::
bad_alloc
();
deSemaphore.cpp
45
throw std::
bad_alloc
();
deThread.cpp
88
throw std::
bad_alloc
();
/external/clang/test/CXX/drs/
dr412.cpp
1
// RUN: %clang_cc1 -std=c++98 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -DNOEXCEPT="throw()" -DBAD_ALLOC="throw(std::
bad_alloc
)"
12
namespace std { struct
bad_alloc
{}; }
struct in namespace:std
14
inline void* operator new(size_t)
BAD_ALLOC
; // expected-error {{cannot be declared 'inline'}}
15
inline void* operator new[](size_t)
BAD_ALLOC
; // expected-error {{cannot be declared 'inline'}}
/external/libcxx/test/std/language.support/support.dynamic/alloc.errors/new.badlength/
bad_array_new_length.pass.cpp
18
static_assert((std::is_base_of<std::
bad_alloc
, std::bad_array_new_length>::value),
19
"std::is_base_of<std::
bad_alloc
, std::bad_array_new_length>::value");
/external/lzma/CPP/Common/
NewHandler.h
13
The operator new() in some MSVC versions doesn't throw exception std::
bad_alloc
.
17
We suppose that code compiled with VS2015+ (_MSC_VER >= 1900) throws exception std::
bad_alloc
.
22
with any compiler. 7-Zip's code can work with std::
bad_alloc
and CNewException() exceptions.
47
// std::
bad_alloc
can require additional DLL dependency.
48
// So we don't define CNewException as std::
bad_alloc
here.
68
#define CNewException std::
bad_alloc
/external/libcxx/test/std/strings/basic.string/string.capacity/
max_size.pass.cpp
34
catch ( const std::
bad_alloc
& ) { return ; }
45
catch ( const std::
bad_alloc
& ) { return ; }
/external/libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.protected/streambuf.put.area/
pbump2gig.pass.cpp
46
catch (const std::
bad_alloc
&) {} // maybe we don't have enough RAM
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/
nullptr_t_deleter_throw.pass.cpp
49
catch (std::
bad_alloc
&)
pointer_throw.pass.cpp
47
catch (std::
bad_alloc
&)
nullptr_t_deleter_allocator_throw.pass.cpp
39
catch (std::
bad_alloc
&)
pointer_deleter_allocator_throw.pass.cpp
40
catch (std::
bad_alloc
&)
/external/clang/test/CXX/except/except.spec/
p3.cpp
98
// with a throw(
bad_alloc
) spec, because C++0x makes an incompatible change
100
extern "C++" { namespace std { class
bad_alloc
{}; } }
class in namespace:std
102
void* operator new(mysize_t) throw(std::
bad_alloc
);
105
void* operator new[](mysize_t) throw(std::
bad_alloc
);
/external/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/
new_array.pass.cpp
48
catch (std::
bad_alloc
&)
new_array_nothrow_replace.pass.cpp
25
void* operator new(std::size_t s) TEST_THROW_SPEC(std::
bad_alloc
)
new_array_replace.pass.cpp
26
void* operator new(std::size_t s) TEST_THROW_SPEC(std::
bad_alloc
)
/external/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/
new.pass.cpp
48
catch (std::
bad_alloc
&)
new_nothrow_replace.pass.cpp
25
void* operator new(std::size_t s) TEST_THROW_SPEC(std::
bad_alloc
)
new_replace.pass.cpp
24
void* operator new(std::size_t s) TEST_THROW_SPEC(std::
bad_alloc
)
Completed in 658 milliseconds
1
2
3