0

Just saw the use of stdexp::optional in the program(C++). Google search result points me to std::optional. It is something not common or it is something that maybe custom defined somewhere in my program?

example:

stdexp::optional<std::string> foo;

I'm a beginner in C++, so if someone can break down this into simple terms, that would be great

DonBaka
  • 325
  • 2
  • 14
  • 6
    It's impossible to answer without the actual code but it's likely an alias to `std::experimental`. See https://en.cppreference.com/w/cpp/header/experimental/optional - Note that since C++17 `optional` is part of the standard, not experimental anymore. – Holt Nov 24 '21 at 14:14
  • @Holt found it in the code `namespace stdexp { using std::experimental::optional; }` Thanks! – DonBaka Nov 24 '21 at 14:22

0 Answers0