tables::column::mins, maxs

1)

template <is_primitive_type P>
column<P> column<P>::mins()

2)

template <is_primitive_type P>
column<P> column<P>::maxs()

  1. Returns the running minimums.

  2. Returns the running maximums.

Complexity

Linear

Example

Code

#include <cpptables/table.hh>

using namespace tables;
using namespace std;

void column_mins_maxs()
{
  const column<unsigned> xs({ 5, 2, 10, 8 });

  cout << xs.mins() << "\n";
  cout << xs.maxs() << "\n";
}

Output

5 2 2 2

5 5 10 10