A function or class template is used that C++17 removed from the standard library

tx0/cpp:removed-library-functionrecommendedwarningreliability/api-misusedepth fastsmell

What it finds

std::random_shuffle, std::bind1st, std::bind2nd, std::ptr_fun, std::mem_fun, std::mem_fun_ref, std::unary_function and std::binary_function were deprecated in C++11 and C++14 and removed in C++17. std::shuffle with a random engine, lambdas, std::bind and std::mem_fn replace them.

From the rule's source, removed_library_function.rs.

Turn it on, off or suppress it

The rule runs from the recommended tier up. To turn it on in a lower tier, give it a level in tx0.toml:

tx0.toml
[rules]
"tx0/cpp:removed-library-function" = "warning"

To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:

// tx0: ignore[tx0/cpp:removed-library-function] reason="..."

tx0 explain tx0/cpp:removed-library-function shows the same in the terminal. Found a false positive? Report it.