// Copyright (C) 2014-2020 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #include #include namespace CommonAPI { size_t SharedPointerClientIdContentHash::operator()(const std::shared_ptr &_t) const { if (_t) { return _t->hashCode(); } return (0); } bool SharedPointerClientIdContentEqual::operator()( const std::shared_ptr &_lhs, const std::shared_ptr &_rhs) const { if (_lhs && _rhs) { return (*_lhs==*_rhs); } return (false); } } // namespace std