Category : stl

I have codes as follow: #include <concepts> //Fibo Begins template <std::unsigned_integral num> struct Fibo { constexpr static std::size_t value = Fibo<num – 1>::value + Fibo<num – 2>::value; }; template <> struct Fibo<1> { constexpr static std::size_t value = 1; }; template <> struct Fibo<2> { constexpr static std::size_t value = 1; }; //Fibo ends Compiler ..

Read more

I made the following map to store data from a .log : map<string,pair(int,map<string,int>)>. I manage to store the data but not to retrieve it. What I do is: cout<< "first string: "<< debut->first << " pair (first int): " << debut->second.first << endl; (debut is a constant iterator of a map) With that I get ..

Read more