MVault 0.0.1
Loading...
Searching...
No Matches
Functions
VaultFunctions

Functions that are available in the library. More...

Functions

template<template< class E, class Alloc=std::allocator< E > > class T>
void mvlt::PrintAsTable (const T< VaultRecordRef > &container, bool isPrintId=false, const std::size_t &amountOfRecords=-1, const std::vector< std::string > keys={}) noexcept
 A method for printing data as tables.
 

Detailed Description

Functions that are available in the library.

Function Documentation

◆ PrintAsTable()

template<template< class E, class Alloc=std::allocator< E > > class T>
void mvlt::PrintAsTable ( const T< VaultRecordRef > &  container,
bool  isPrintId = false,
const std::size_t &  amountOfRecords = -1,
const std::vector< std::string >  keys = {} 
)
noexcept

A method for printing data as tables.

Template Parameters
<T>It takes the std container with VaultRecordRef objects.

Not thread safety.

Parameters
[in]containerthe std container with the VaultRecordRef`s to be printed
[in]isPrintIdwill the unique IDs be printed in the table
[in]amountOfRecordsThe number of records to be printed. The default value is -1, which means that all entries will be output
[in]keysvector of keys to be printed. By default, the vector is empty, which means that all keys will be output