30 move_assigned = std::move(move_constructed);
41 Teuchos::any::holder<std::string>* dyn_cast_content =
dynamic_cast<Teuchos::any::holder<std::string>*
>(
42 source.
getAny().access_content());
44 TEST_EQUALITY(dyn_cast_content->held, std::string(
"nice-entry"));
47 std::string copy_extracted = Teuchos::any_cast<std::string>(source.
getAny());
48 TEST_EQUALITY(dyn_cast_content->held, std::string(
"nice-entry"));
52 std::string move_extracted = Teuchos::any_cast<std::string>(std::move(source.
getAny()));
A thin wrapper around the Teuchos Array class that allows for 2 dimensional arrays.
#define TEST_ASSERT(v1)
Assert the given statement is true.
void setValue(T value, bool isDefault=false, const std::string &docString="", RCP< const ParameterEntryValidator > const &validator=null)
Templated set method that uses the input value type to determine the type of parameter.
This object is held as the "value" in the Teuchos::ParameterList std::map.
bool isArray() const
Test if the type of data being contained is a Teuchos::Array.
bool has_value() const
Checks whether the object contains a value.
#define TEST_EQUALITY(v1, v2)
Assert the equality of v1 and v2.
bool isType() const
Test the type of the data being contained.
TEUCHOS_UNIT_TEST(ConstNonconstObjectContainer, create)
A thin wrapper around the Array class which causes it to be interpreted as a 2D Array.
Templated Parameter List class.
any & getAny(bool activeQry=true)
Direct access to the Teuchos::any data value underlying this object. The bool argument activeQry (def...
bool isTwoDArray() const
Test if the type of data being contained is a Teuchos::TwoDArray.