#Is there a function that returns the smallest int of an array?

7 messages · Page 1 of 1 (latest)

marble aspen
#

s there a function that returns the smallest int of an array?

chrome oarBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.

serene fractal
#

!cppref std::min_element

frosty drumBOT
#
template <class ForwardIt>
constexpr ForwardIt min_element(
    ForwardIt first,
    ForwardIt last);```(since C++17)  
```cpp
template <
    class ExecutionPolicy,
    class ForwardIt>
ForwardIt min_element(
    ExecutionPolicy&& policy,
    ForwardIt first,
    ForwardIt last);```(since C++17)  
```cpp
template <class ForwardIt, class Compare>
constexpr ForwardIt min_element(
    ForwardIt first,
    ForwardIt last,
    Compare comp);```(since C++17)  
*1 declarations omitted, follow the link for more*
Defined in header
north timber
#

Yes that

#

Ranges probably will get one too

chrome oarBOT
#

This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.