operator<=

Tests for a lexicographically less than or equal to condition.

  template <class charT, class traits, class Allocator>

  bool operator<=

  (const basic_string <charT,traits,Allocator>& lhs,

  const basic_string <charT,traits,Allocator>& rhs);

  template <class charT, class traits, class Allocator>

  bool operator<=

  (const charT* lhs,

  const basic_string <charT,traits,Allocator>& rhs);

  template <class charT, class traits, class Allocator>

  bool operator<=

  (const basic_string <charT,traits,Allocator>& lhs, const charT* rhs);  
Remarks

Returns true if the first argument is lexicographically less than or equal to the second argument otherwise false.