Documentation Home >> Headers >> <jss/experimental_atomic.hpp> Header >> std::experimental::shared_ptr >> std::experimental::shared_ptr less-than comparison operator

Compare two std::experimental::shared_ptr objects to see if one is less than the other.

template <typename LhsTarget, typename RhsTarget>
bool operator<(
    const shared_ptr<LhsTarget>& lhs,
    const shared_ptr<RhsTarget>& rhs);


If P is the common pointer type of LhsTarget* and RhsTarget* then lhs<rhs returns std::less<P>()(lhs.get(),rhs.get()).


#include <experimental/atomic>

See Also