Advertisement
Swiftkill

Cthulhu code

Mar 27th, 2019
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.87 KB | None | 0 0
  1. std::copy_if(a.begin(), a.end(), std::back_inserter(c),
  2.   std::bind(std::less<>(),
  3.     std::bind(
  4.       std::count<std::vector<int>::iterator, int>,
  5.         std::bind(
  6.           static_cast<std::vector<int>::iterator (std::vector<int>::*)()>(&std::vector<int>::begin),
  7.           &c
  8.         ),
  9.         std::bind(
  10.           static_cast<std::vector<int>::iterator (std::vector<int>::*)()>(&std::vector<int>::end),
  11.           &c
  12.         ),
  13.         std::placeholders::_1
  14.     ),
  15.     std::bind(
  16.       std::minus<>(),
  17.         std::bind(
  18.           std::count<std::vector<int>::iterator, int>,
  19.             a.begin(),
  20.             a.end(),
  21.             std::placeholders::_1
  22.         ),
  23.         std::bind(
  24.           std::count<std::vector<int>::iterator, int>,
  25.             b.begin(),
  26.             b.end(),
  27.             std::placeholders::_1
  28.         )
  29.     )
  30.   )
  31. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement