proconlib

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

View the Project on GitHub anqooqie/proconlib

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

Constraints

Time Complexity

License

Author

Required by

Verified with

Code

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


Back to top page