Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function get_raw_buffer

boost::time_series::get_raw_buffer — Fetch a raw pointer to the internal dense storage of a dense_series<>.

Synopsis

// In header: <boost/time_series/dense_series.hpp>


template<typename Value, typename Discretization> 
  std::pair< Value *, std::size_t > 
  get_raw_buffer(dense_series< Value, Discretization > & series);
template<typename Value, typename Discretization> 
  std::pair< Value const *, std::size_t > 
  get_raw_buffer(dense_series< Value, Discretization > const & series);

Description

Fetch a raw pointer to the internal dense storage of a dense_series<>

Returns:

A std::pair<> containing the raw pointer to the buffer and a std::size_t with the number of elements in the buffer. If the dense_series<> is empty, the returned pointer is 0 and the returned size is 0.

Throws: Will not throw.

PrevUpHomeNext