Macros | Functions
sizeoverflow.cpp File Reference
#include "main.h"
Include dependency graph for sizeoverflow.cpp:

Go to the source code of this file.

Macros

#define VERIFY_THROWS_BADALLOC(a)
 

Functions

void test_sizeoverflow ()
 
template<typename MatrixType >
void triggerMatrixBadAlloc (Index rows, Index cols)
 
template<typename VectorType >
void triggerVectorBadAlloc (Index size)
 

Macro Definition Documentation

#define VERIFY_THROWS_BADALLOC (   a)
Value:
{ \
bool threw = false; \
try { \
a; \
} \
catch (std::bad_alloc&) { threw = true; } \
VERIFY(threw && "should have thrown bad_alloc: " #a); \
}
Array33i a
#define VERIFY(a)
Definition: main.h:325

Definition at line 12 of file sizeoverflow.cpp.

Function Documentation

void test_sizeoverflow ( )

Definition at line 37 of file sizeoverflow.cpp.

template<typename MatrixType >
void triggerMatrixBadAlloc ( Index  rows,
Index  cols 
)

Definition at line 22 of file sizeoverflow.cpp.

template<typename VectorType >
void triggerVectorBadAlloc ( Index  size)

Definition at line 30 of file sizeoverflow.cpp.



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:36