1.빈 optional 객체 std::nullopt
2.객체 보관 과정에서 동적 할당이 일어나지 않는다
optional 자체에 객체가 포함되어 있다.
3.아무것도 가지고 있지 않는 상태에서 디폴트 객체를 가지고 있지 않는다.( std::nullopt)
4.레퍼런스를 포함 할수 없다.
reference_wrapper를 이용해야 한다.
씹어먹는 C++ - <17 - 5. C++ 17 의 std::optional, variant, tuple 살펴보기>
modoocode.com
std::optional: 언제, 어떻게, 그리고 왜
std::optional: 언제, 어떻게, 그리고 왜 | The Dream of Super Surplus Power
std::optional: 언제, 어떻게, 그리고 왜 by Surpreem · Published October 14, 2018 · Updated November 4, 2018 원문은 std::optional: How, when, and why by Casey Carter이며 아래는 이를 요약 정리한 글이다. 때때로 값이 있어야
surpreem.com