JayBeams  0.1
Another project to have fun coding.
Classes | Namespaces | Functions
resize_if_applicable.hpp File Reference
#include <type_traits>

Go to the source code of this file.

Classes

class  jb::testing::has_resize< C >
 Type trait to evaluate if a collection of numbers (e.g. More...
 

Namespaces

 jb
 The top-level namespace for the JayBeams library.
 
 jb::testing
 Helper functions and classes to simplify unit tests.
 

Functions

template<typename timeseries >
void jb::testing::resize_if_applicable (timeseries &ts, std::size_t newsize, std::true_type)
 Resize a timeseries to a newsize. More...
 
template<typename timeseries >
void jb::testing::resize_if_applicable (timeseries &ts, std::size_t newsize, std::false_type)
 Dummy specialization for non-resizable timeseries collections. More...
 
template<typename timeseries >
void jb::testing::resize_if_applicable (timeseries &ts, std::size_t newsize)
 Resize a timeseries to a newsize if it is resizable. More...