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

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

Macro Definition Documentation

◆ VERIFY_THROWS_BADALLOC

#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); \
}

Definition at line 12 of file sizeoverflow.cpp.

Function Documentation

◆ EIGEN_DECLARE_TEST()

EIGEN_DECLARE_TEST ( sizeoverflow  )

Definition at line 37 of file sizeoverflow.cpp.

◆ triggerMatrixBadAlloc()

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

Definition at line 22 of file sizeoverflow.cpp.

◆ triggerVectorBadAlloc()

template<typename VectorType >
void triggerVectorBadAlloc ( Index  size)

Definition at line 30 of file sizeoverflow.cpp.



gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:40:54