MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / Option

Method Option

Bcore/src/main/cpp/Dobby/tests/catch.hpp:3323–3324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3321template <typename T> class Option {
3322public:
3323 Option() : nullableValue(nullptr) {
3324 }
3325 Option(T const &_value) : nullableValue(new (storage) T(_value)) {
3326 }
3327 Option(Option const &_other) : nullableValue(_other ? new (storage) T(*_other) : nullptr) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected