tables::table::at
template <typename... Ts,is_primitive_type... Ps>
inline
table<std::pair<Ts,Ps>...>::row_t
table<std::pair<Ts,Ps>...>::irow(const std::size_t irow) const
Returns row at specified irow.
Example
Code
#include <cpptables/table.hh>
#include <iostream>
using namespace tables;
using namespace std;
struct c0{ constexpr static string_view name = "Col0"; };
struct c1{ constexpr static string_view name = "Col1"; };
struct c2{ constexpr static string_view name = "Col2"; };
using table_t = table<
pair<c0,string_view>,
pair<c1,unsigned>,
pair<c2,double>
>;
void table_irow()
{
const table_t t(
{"here", "there", "nowhere"},
{100,200,300},
{1.0,2.0,3.0}
);
cout << t.irow(0) << "\n";
}