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.

a
ArrayXXi a
Definition: Array_initializer_list_23_cxx11.cpp:1


gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:18:34