Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Namespaces | Typedefs | Functions
print.cpp File Reference
#include "shambase/print.hpp"
#include <iostream>
#include <ostream>
+ Include dependency graph for print.cpp:

Go to the source code of this file.

Namespaces

namespace  shambase
 namespace for basic c++ utilities
 

Typedefs

using shambase::printer_t = void(*)(std::string_view)
 
using shambase::flush_t = void(*)()
 

Functions

void shambase::print (std::string_view sv)
 Prints a string to the console.
 
void shambase::println (std::string_view sv)
 Prints a string to the console followed by a newline.
 
void shambase::flush ()
 Flushes the output buffer.
 
void shambase::change_printer (void(*func_printer_normal)(std::string_view), void(*func_printer_ln)(std::string_view), void(*func_flush_func)())
 Changes the behavior of the print, println and flush functions.
 
void shambase::reset_std_behavior ()
 Restores the default behavior of the print and println functions.
 

Detailed Description

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file print.cpp.