utx::print_all: v3 new, supports both STL containers and std::tuple (utxcpp)
utx::print_all
New utx::print_all v3, supports both STL containers and std::tuple
#include <tuple> #include <set> #include <vector> #include <utxcpp/core.hpp> int main() { utx::print_all( std::tuple{123, true, 1.23, false, "beat"}, std::vector{1,2,3,4,5}, std::set{3,4,2,5} ); utx::print("----------------------------------------"); auto vector = std::vector{4,3,2,1}; auto tuple = std::tuple{12, 3.4, true, "c++"}; auto set = std::set{3,2,4,1,5}; utx::print_all(vector, tuple, set); utx::print("----------------------------------------"); }
Old utx::print_tuples function is removed. Its feature is done by utx::print_all.
One utx::print_all, supports all many values host.
Comments
Display comments as Linear | Threaded