mgcpp
A C++ Math Library Based on CUDA
mgblas_error.hpp
Go to the documentation of this file.
1 
2 // Copyright RedPortal, mujjingun 2017 - 2018.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 
7 #ifndef _MGCPP_SYSTEM_MGCPP_KERNEL_ERROR_HPP_
8 #define _MGCPP_SYSTEM_MGCPP_KERNEL_ERROR_HPP_
9 
11 
12 #include <system_error>
13 #include <type_traits>
14 
15 namespace mgcpp {
16 std::error_code make_error_code(mgcpp::mgblas_error_t err) noexcept;
17 }
18 
19 namespace std {
20 template <>
21 struct is_error_code_enum<mgcpp::mgblas_error_t> : public std::true_type {};
22 } // namespace std
23 
24 #endif
Definition: adapter_base.hpp:12
Definition: shape.hpp:33
mgblas_error_t
Definition: mgblas_error_code.hpp:11
std::error_code make_error_code(mgcpp::mgblas_error_t err) noexcept