Theoretica
Mathematical Library
Loading...
Searching...
No Matches
io.h File Reference

Functions for standard input and output. More...

#include <iostream>
#include <string>

Go to the source code of this file.

Namespaces

namespace  theoretica
 Main namespace of the library which contains all functions and objects.
 
namespace  theoretica::io
 Input and output module.
 

Functions

template<typename Type >
void theoretica::io::print (const Type &curr)
 Print the given argument to standard output.
 
template<typename Type , typename ... Args>
void theoretica::io::print (const Type &curr, Args... args)
 Print the given arguments to standard output separated by a space.
 
void theoretica::io::println ()
 Print a newline to standard output.
 
template<typename Type >
void theoretica::io::println (const Type &curr)
 Print the given argument to standard output followed by a newline.
 
template<typename Type , typename ... Args>
void theoretica::io::println (const Type &curr, Args... args)
 Print the given arguments to standard output separated by a space and followed by a newline.
 
std::string theoretica::io::readln ()
 Read a line from standard input, up to a line return.
 
template<typename Type >
void theoretica::io::readln (Type &last)
 Read a single object from standard input, ended by a line return.
 
template<typename Type , typename ... Args>
void theoretica::io::readln (Type &curr, Args &... args)
 Read objects from standard input, ended by a line return.
 

Detailed Description

Functions for standard input and output.