AreEqualData()

System::TestPredicates::Details::SharedPtrAsserts::AreEqualData(const T1&, const T2&) function

Equal-compares two containers using System::Object::Equals on elements. Works for SmartPtr elements.

template<typename T1,typename T2> std::enable_if<System::IsSmartPtr<typenameT1::value_type>::value &&System::IsSmartPtr<typenameT2::value_type>::value, bool>::type System::TestPredicates::Details::SharedPtrAsserts::AreEqualData(const T1 &lhs, const T2 &rhs)

Template parameters

ParameterDescription
T1LHS container type.
T2RHS container type.

Arguments

ParameterTypeDescription
lhsconst T1&LHS container reference.
rhsconst T2&RHS container reference.

Return Value

True if contained elements and sizes match, false otherwise.

System::TestPredicates::Details::SharedPtrAsserts::AreEqualData(const T1&, const T2&) function

Equal-compares two containers using operator == on elements. Works for non-SmartPtr elements.

template<typename T1,typename T2> std::enable_if<!System::IsSmartPtr<typenameT1::value_type>::value &&!System::IsSmartPtr<typenameT2::value_type>::value, bool>::type System::TestPredicates::Details::SharedPtrAsserts::AreEqualData(const T1 &lhs, const T2 &rhs)

Template parameters

ParameterDescription
T1LHS container type.
T2RHS container type.

Arguments

ParameterTypeDescription
lhsconst T1&LHS container.
rhsconst T2&RHS container.

Return Value

True if contained elements and sizes match, false otherwise.

System::TestPredicates::Details::SharedPtrAsserts::AreEqualData(const T&, const T&) function

Equal-compares two containers of identical type. Works for non-SmartPtr elements.

template<typename T> std::enable_if<!System::IsSmartPtr<typenameT::value_type>::value, bool>::type System::TestPredicates::Details::SharedPtrAsserts::AreEqualData(const T &lhs, const T &rhs)

Template parameters

ParameterDescription
T1LHS container type.
T2RHS container type.

Arguments

ParameterTypeDescription
lhsconst T&LHS container.
rhsconst T&RHS container.

Return Value

True if contained elements and sizes match, false otherwise.

See Also