GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::char_traits::compare(3) C++ Standard Libary std::char_traits::compare(3)

std::char_traits::compare - std::char_traits::compare


static int compare( const char_type* s1, const char_type* s2, (until C++17)
std::size_t count );
static constexpr int compare( const char_type* s1, const char_type* (since C++17)
s2, std::size_t count );


Compares the first count characters of the character strings s1 and s2. The
comparison is done lexicographically.


If count is zero, strings are considered equal.


s1, s2 - pointers to character strings to compare
count - the number of characters to compare from each character string


Negative value if s1 is less than s2.


0 if s1 is equal to s2.


Positive value if s1 is greater than s2.


Throws nothing.


Linear in count.

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.