mirror of
https://github.com/pocoproject/poco.git
synced 2025-12-08 12:19:21 +01:00
14 lines
252 B
C++
14 lines
252 B
C++
#include <iostream>
|
|
#include <string>
|
|
#include <optional>
|
|
|
|
using namespace std::literals;
|
|
|
|
int main()
|
|
{
|
|
std::optional<std::string> option;
|
|
std::string str = "Try to compile"s;
|
|
std::cout << str << " "s << option.has_value() << '\n';
|
|
return 0;
|
|
}
|