Šimon Tóth’s Post

View profile for Šimon Tóth

C++ Educational Content Creator | 20 years of Software Engineering experience distilled into digestible daily posts

The std::pair is a simple heterogeneous container for storing two elements, conceptually similar to std::tuple. std::pair supports the std::tuple interface: std::get, std::tuple_size, std::tuple_element. If you care about performance and work with trivially copyable types, consider an aggregate instead because std::pair isn't trivially copyable. Compiler Explorer link: https://lnkd.in/eRK22_nX #cpp #cplusplus #coding #programming #dailybiteofcpp

  • text

To view or add a comment, sign in

Explore content categories