MCPcopy Create free account
hub / github.com/ThePhD/sol2 / take

Method take

include/sol/optional_implementation.hpp:1066–1070  ·  view source on GitHub ↗

Takes the value out of the optional, leaving it empty \group take

Source from the content-addressed store, hash-verified

1064 /// Takes the value out of the optional, leaving it empty
1065 /// \group take
1066 optional take() & {
1067 optional ret = *this;
1068 reset();
1069 return ret;
1070 }
1071
1072 /// \group take
1073 optional take() const& {

Callers

nothing calls this directly

Calls 1

resetFunction · 0.85

Tested by

no test coverage detected