A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://stotko.github.io/stdgpu/doxygen/group__algorithm_ga0b5cc5d196df56e6cb2bfeddd8391d01.html below:

clamp — stdgpu Latest documentation

clamp copy copy_n fill fill_n for_each_index max min ◆ clamp()

template<class T >

STDGPU_HOST_DEVICE const T & stdgpu::clamp ( const T &  v, const T &  lower, const T &  upper  )

Clamps a value to the given range.

Template Parameters
T The type of the values
Parameters
[in] v A value [in] lower The lower bound [in] upper The upper bound
Returns
lower if v < lower, upper if upper < v, v otherwise
Precondition
!(upper < lower)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4