Skip to content

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.

utx::print_all

 

 

 

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Form options

Submitted comments will be subject to moderation before being displayed.

@cppfx.xyz