About 400 results
Open links in new tab
  1. <algorithm> - C++ Users

    The header <algorithm> defines a collection of functions especially designed to be used on ranges of elements. A range is any sequence of objects that can be accessed through iterators or pointers, …

  2. Headers and Includes: Why and How - C++ Articles

    This is where header files come in. Header files allow you to make the interface (in this case, the class MyClass) visible to other .cpp files, while keeping the implementation (in this case, MyClass's …

  3. for_each - C++ Users

    fn Unary function that accepts an element in the range as argument. This can either be a function pointer or a move constructible function object. Its return value, if any, is ignored. Return value …

  4. <numeric> - C++ Users

    This header describes a set of algorithms to perform certain operations on sequences of numeric values. Due to their flexibility, they can also be adapted for other kinds of sequences.

  5. min - C++ Users

    If both are equivalent, a is returned. The versions for initializer lists (3) return the smallest of all the elements in the list. Returning the first of them if these are more than one. The function uses …

  6. sort - C++ Users

    Sorts the elements in the range [first,last) into ascending order. The elements are compared using operator< for the first version, and comp for the second. Equivalent elements are not guaranteed to …

  7. find - C++ Users

    Returns an iterator to the first element in the range [first,last) that compares equal to val. If no such element is found, the function returns last. The function uses operator== to compare the individual …

  8. max - C++ Users

    If both are equivalent, a is returned. The versions for initializer lists (3) return the largest of all the elements in the list. Returning the first of them if these are more than one. The function uses …

  9. std:: transform - C++ Users

    This can either be a function pointer or a function object. Neither op nor binary_op should directly modify the elements passed as its arguments: These are indirectly modified by the algorithm (using the …

  10. swap - C++ Users

    Many components of the standard library (within std) call swap in an unqualified manner to allow custom overloads for non-fundamental types to be called instead of this generic version: Custom overloads …