proconlib

This documentation is automatically generated by competitive-verifier/competitive-verifier

View the Project on GitHub anqooqie/proconlib

:heavy_check_mark: std::log(x) extended for my library (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.

Constraints

Time Complexity

License

Author

Required by

Verified with

Code

#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);
  }
}


Back to top page