diff --git a/kratos/containers/global_pointers_vector.h b/kratos/containers/global_pointers_vector.h index bb30ed3bb1f6..5faf0fe36474 100644 --- a/kratos/containers/global_pointers_vector.h +++ b/kratos/containers/global_pointers_vector.h @@ -199,21 +199,6 @@ class GlobalPointersVector final return mData[i]; } - /** - * @brief Equality comparison operator to check if two GlobalPointersVector objects are equal. - * @details This function checks if the sizes are equal and then compares the elements for equality - * using the EqualKeyTo() function. - * @param r The GlobalPointersVector to compare with. - * @return True if the containers are equal, false otherwise. - */ - bool operator==(const GlobalPointersVector& r) const // nothrow - { - if (size() != r.size()) - return false; - else - return std::equal(mData.begin(), mData.end(), r.mData.begin(), this->EqualKeyTo()); - } - ///@} ///@name Operations ///@{ diff --git a/kratos/containers/pointer_vector.h b/kratos/containers/pointer_vector.h index 3d4f988986a2..71175e469507 100644 --- a/kratos/containers/pointer_vector.h +++ b/kratos/containers/pointer_vector.h @@ -2,14 +2,14 @@ // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ -// Multi-Physics +// Multi-Physics // -// License: BSD License +// License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Pooyan Dadvand // Riccardo Rossi -// +// // @@ -154,14 +154,6 @@ class PointerVector final return mData[i]; } - bool operator==( const PointerVector& r ) const // nothrow - { - if( size() != r.size() ) - return false; - else - return std::equal(mData.begin(), mData.end(), r.mData.begin(), this->EqualKeyTo()); - } - ///@} ///@name Operations ///@{ @@ -278,7 +270,7 @@ class PointerVector final } template - void emplace_back(Args&&... args) + void emplace_back(Args&&... args) { mData.emplace_back(std::forward(args)...); } @@ -520,4 +512,4 @@ inline std::ostream& operator << (std::ostream& rOStream, } // namespace Kratos. -#endif // KRATOS_POINTER_VECTOR_SET_H_INCLUDED defined +#endif // KRATOS_POINTER_VECTOR_SET_H_INCLUDED defined