| 46 | |
| 47 | template<typename TransformType> |
| 48 | void check_stddeque_transform(const TransformType&) |
| 49 | { |
| 50 | typedef typename TransformType::MatrixType MatrixType; |
| 51 | TransformType x(MatrixType::Random()), y(MatrixType::Random()); |
| 52 | std::deque<TransformType,Eigen::aligned_allocator<TransformType> > v(10), w(20, y); |
| 53 | v.front() = x; |
| 54 | w.front() = w.back(); |
| 55 | VERIFY_IS_APPROX(w.front(), w.back()); |
| 56 | v = w; |
| 57 | |
| 58 | typename std::deque<TransformType,Eigen::aligned_allocator<TransformType> >::iterator vi = v.begin(); |
| 59 | typename std::deque<TransformType,Eigen::aligned_allocator<TransformType> >::iterator wi = w.begin(); |
| 60 | for(int i = 0; i < 20; i++) |
| 61 | { |
| 62 | VERIFY_IS_APPROX(*vi, *wi); |
| 63 | ++vi; |
| 64 | ++wi; |
| 65 | } |
| 66 | |
| 67 | v.resize(21); |
| 68 | v.back() = x; |
| 69 | VERIFY_IS_APPROX(v.back(), x); |
| 70 | v.resize(22,y); |
| 71 | VERIFY_IS_APPROX(v.back(), y); |
| 72 | v.push_back(x); |
| 73 | VERIFY_IS_APPROX(v.back(), x); |
| 74 | } |
| 75 | |
| 76 | template<typename QuaternionType> |
| 77 | void check_stddeque_quaternion(const QuaternionType&) |