// The callers of this method are responsible for checking the result
// and dropping any references they hold. As a convenience to them,
// we return the value here.
- return _initializationWasSuccessful.get();
+ return _initializationWasSuccessful.value();
}
static bool
{
// Only notify if this layer has been successfully initialized.
// (If initialization is not yet complete, do not notify.)
- return _initializationWasSuccessful.get_value_or(false);
+ return _initializationWasSuccessful.value_or(false);
}
void
#include "pxr/base/vt/value.h"
#include "pxr/base/work/dispatcher.h"
-#include <boost/optional.hpp>
-
#include <atomic>
#include <functional>
#include <memory>
// This is an optional<bool> that is only set once initialization
// is complete, before _initializationComplete is set.
- boost::optional<bool> _initializationWasSuccessful;
+ std::optional<bool> _initializationWasSuccessful;
// remembers the last 'IsDirty' state.
mutable bool _lastDirtyState;
#include "pxr/base/tf/token.h"
-#include <boost/optional.hpp>
-
#include <string>
#include <vector>
bool relParsingAllowTargetData;
// relationship target paths that will be saved in a list op
// (use a boost::optional to track whether we have seen an opinion at all.)
- boost::optional<SdfPathVector> relParsingTargetPaths;
+ std::optional<SdfPathVector> relParsingTargetPaths;
// relationship target paths that will be appended to the relationship's
// list of target children.
SdfPathVector relParsingNewTargetChildren;