API Reference > Namespaces > not_std Namespace > Classes > optional Template > optional Methods > optional::swap Method
optional::swap Method
Syntax
C++
void swap(optional& rhs);

This is swap, a member of class optional.

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.