Program Listing for File unset_mask.hpp

Return to documentation for file (include/uitsl/algorithm/unset_mask.hpp)

#pragma once
#ifndef UITSL_ALGORITHM_UNSET_MASK_HPP_INCLUDE
#define UITSL_ALGORITHM_UNSET_MASK_HPP_INCLUDE

namespace uitsl {

template<typename T>
T unset_mask(const T& target, const T& mask) {

  return target & ~mask;

}

} // namespace uitsl

#endif // #ifndef UITSL_ALGORITHM_UNSET_MASK_HPP_INCLUDE