ulfben

any of, none of

Mar 18th, 2021
1,861
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. template <typename T, typename ...Args>
  2. bool any_of(T const v, Args&&... args) requires (sizeof...(args) > 0)
  3. {
  4.    return ((args == v) || ...);
  5. }
  6.  
  7. template <typename T, typename ...Args>
  8. bool none_of(T const v, Args&&... args) requires (sizeof...(args) > 0)
  9. {
  10.    return ((args != v) && ...);
  11. }
Advertisement
Comments
  • Yuizcko
    79 days
    # text 0.19 KB | 0 0
    1. Best t33n active cpx link daily updates!
    2.  
    3. Copy and paste the link in a new browser tab and then hit enter!
    4.  
    5. https://crazyporn.xxx/members/157354/?asgtbndr=1&play=true&spon=adworld&zone=400
Add Comment
Please, Sign In to add comment