Home | Libraries | People | FAQ | More |
Expression |
Return type |
Returns |
Complexity |
---|---|---|---|
|
|
|
constant time |
|
|
|
constant time |
|
|
|
constant time |
|
|
|
- |
|
|
|
constant time |
|
|
|
constant time |
|
|
|
constant time |
|
|
|
constant time |
|
|
|
constant time |
|
|
|
constant time |
|
|
|
constant time |
|
|
|
linear time for pointers to a string or arrays of |
|
|
|
The special const_
-named
functions are useful when you want to document clearly that your code
is read-only.
as_literal()
can be used internally
in string algorithm libraries such that arrays of characters are handled
correctly.
as_array()
can be used with string algorithm libraries to make it clear that arrays
of characters are handled like an array and not like a string.
Notice that the above functions should always be called with qualification
(boost::
)
to prevent unintended
Argument Dependent Lookup (ADL).