#Is there a function that returns the smallest int of an array?
7 messages · Page 1 of 1 (latest)
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.
!cppref std::min_element
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
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.