Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace nostd {
- template<class T>
- auto clip(T floor, T x, T ceiling) -> T
- {
- return std::min(ceiling, std::max(floor, x));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement