Skip to content

tobiaslocker/ostr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ostr

Header only library for type dependent output

Example

  std::vector<int> v{1, 2, 3, 4};
  std::vector<char> vc{'a', 'b', 'c'};

  std::vector<bool> vb{true, false, true};
  std::string s = "hello";

  const char *foo = "foo";
  std::cout << ostr::fmt(s, 42, foo, "foo", true, 'c', 2.0, v, vc, vb) << '\n';

Output:

"hello", 42, "foo", "foo", true, 'c', 2, [1, 2, 3, 4], ['a', 'b', 'c'], [true, false, true]

About

C++ ostream printing helpers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published