This documentation is automatically generated by competitive-verifier/competitive-verifier
#include "tools/exp.hpp"
template <typename T>
auto exp(T x) -> decltype(std::exp(x));
If std::exp(x)
is available, it returns std::exp(x)
.
tools::exp(x)
will be extended by other header files in my library.
For example, tools::exp(tools::quaternion<T>)
gets available if you include tools/quaternion.hpp
.
#ifndef TOOLS_EXP_HPP
#define TOOLS_EXP_HPP
#include <cmath>
namespace tools {
template <typename T>
auto exp(const T x) {
return ::std::exp(x);
}
}
#endif
#line 1 "tools/exp.hpp"
#include <cmath>
namespace tools {
template <typename T>
auto exp(const T x) {
return ::std::exp(x);
}
}