The resources of the AVR-based boards like your Nano are very limited. For this reason, you will not find the full range of C++ functionality. It is possible to install a 3rd party STL if you like. I haven't used them so I can't recommend a specific solution, but you'll find it soon enough after a little time with your favorite search engine.
As you discovered, the boards that use more capable modern microcontrollers also have closer to the functionality you'd expect when writing C++ code for your computer.
there is no solution. We have compiler which supports c++11, but we dont have std lirbrary to use.
some ridiculus example:
class A{
A() =default;
A(A&& a) = default; //nice modern move constructor
};
void loop(){
A a{};
A b = std::move(a); // here is error because we dont have any header with std::move !!!!
}
in my favorite search engine there is no solution. Any kind of attempt of porting stl is not supported any longer.
I'm very suppriesed that Arduino company have not done it.
@Mark please do not reply to me any more. You seems to be noob, hater or dummy bot. Next time I will report yours usless comments.
if you did not check it and only spent 1 min to find any thing what you think that work, then dont help me in this way!!! you are wasting my and your time.
lustanis:
if you did not check it and only spent 1 min to find any thing what you think that work, then dont help me in this way!!!
I said from the very start that I've never used one of the 3rd party STL solutions for the AVR boards and so could only tell you that they exist and are easily found with a few minutes on a search engine. Then you said your search engine didn't give you any results, so I provided one to show you were wrong.
lustanis:
dont help me in this way!!! you are wasting my and your time.
Clearly. Well, don't worry, I won't waste my time trying to provide free assistance to such an ungrateful jerk as you ever again.