maomao90's Library
A C++20 library for competitive programming.
Loading...
Searching...
No Matches
pow_mod.hpp File Reference
#include <concepts>
#include "library/internal/concepts.hpp"
#include "library/internal/type_traits.hpp"

Go to the source code of this file.

Namespaces

namespace  maomao90
 

Functions

template<integral T, internal::concepts::broadly_unsigned_integral P>
requires internal::type_traits::is_64bit_or_less_v<T>
constexpr T maomao90::pow_mod (T b, P p, T mod)