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