swap_2.cpp File Reference
#include "../Eigen/Core"

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )
5  {
6  VectorXf a(10), b(10);
7  VectorXf const &ac(a);
8 #ifdef EIGEN_SHOULD_FAIL_TO_BUILD
9  b.swap(ac);
10 #else
11  b.swap(ac.const_cast_derived());
12 #endif
13 }
Scalar * b
Definition: benchVecAdd.cpp:17
const Scalar * a
Definition: level2_cplx_impl.h:32

References a, and b.