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

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

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.