Megosztás a következőn keresztül:


operator< Operator (concurrent_vector)

Tests if the concurrent_vector object on the left side of the operator is less than the concurrent_vector object on the right side.

template<
   typename _Ty,
   class A1,
   class A2
>
inline bool operator<(
   const concurrent_vector<_Ty,
   A1> &_A,
   const concurrent_vector<_Ty,
   A2> &_B
);

Parameters

  • _Ty
    The data type of the elements stored in the concurrent vectors.

  • A1
    The allocator type of the first concurrent_vector object.

  • A2
    The allocator type of the second concurrent_vector object.

  • _A
    An object of type concurrent_vector.

  • _B
    An object of type concurrent_vector.

Return Value

true if the concurrent vector on the left side of the operator is less than the concurrent vector on the right side of the operator; otherwise false.

Remarks

The behavior of this operator is identical to the equivalent operator for the vector class in the std namespace.

This method is not concurrency-safe with respect to other methods that could modify either of the concurrent vectors _A or _B.

Requirements

Header: concurrent_vector.h

Namespace: Concurrency

See Also

Reference

Concurrency Namespace

concurrent_vector Class

Concepts

Parallel Containers and Objects