std::bit_and(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– NAME

Okay so bestie, welcome to the std::bit_and(3) page from the C++ Standard Libary β€” manual name folded in near the top, cute and accounted for πŸ’…. And the name itself? std::bit_and β€” literally std::bit_and, no cap.

🌸 Synopsis

Defined in header <functional>
template<>                      (since C++14)
class bit_and<void>;

std::bit_and<void> is a specialization of std::bit_and with parameter and return type deduced. ✨

πŸŽ€ Member functions

  • operator() β€” applies operator& to lhs and rhs (public member function)

✨ std::bit_and<void>::operator()

template< class T, class U >

constexpr auto operator()( T&& lhs, U&& rhs ) const

    -> decltype(std::forward<T>(lhs) & std::forward<U>(rhs));

Returns the result of std::forward<T>(lhs) & std::forward<U>(rhs). That's the whole vibe. πŸ’–

πŸ“ Parameters

  • lhs, rhs β€” values to bitwise AND

πŸ¦‹ Return value

std::forward<T>(lhs) & std::forward<U>(rhs).

🌈 Example

This section is incomplete Reason: no example

Bestie, that's it β€” no example yet 😭.

πŸ‘‘ Category

  • Todo no example

Mwah! πŸ’… This one's from source/version http://cppreference.com, date 2024.06.10, and the footer name is std::bit_and(3). Bye bestie, slay those bitwise ANDs! 🫢✨

πŸ“¦ where this page comes from