src/hotspot/share/metaprogramming/isIntegral.hpp
changeset 53244 9807daeb47c4
parent 49621 5ef28d560b6f
equal deleted inserted replaced
53243:8bea4144b21c 53244:9807daeb47c4
     1 /*
     1 /*
     2  * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    21  * questions.
    21  * questions.
    22  *
    22  *
    23  */
    23  */
    24 
    24 
    25 
    25 
    26 #ifndef SHARE_VM_METAPROGRAMMING_ISINTEGRAL_HPP
    26 #ifndef SHARE_METAPROGRAMMING_ISINTEGRAL_HPP
    27 #define SHARE_VM_METAPROGRAMMING_ISINTEGRAL_HPP
    27 #define SHARE_METAPROGRAMMING_ISINTEGRAL_HPP
    28 
    28 
    29 #include "metaprogramming/integralConstant.hpp"
    29 #include "metaprogramming/integralConstant.hpp"
    30 #include "metaprogramming/isSigned.hpp"
    30 #include "metaprogramming/isSigned.hpp"
    31 #include "metaprogramming/removeCV.hpp"
    31 #include "metaprogramming/removeCV.hpp"
    32 #include <limits>
    32 #include <limits>
    53 template<typename T>
    53 template<typename T>
    54 struct IsUnsignedIntegral
    54 struct IsUnsignedIntegral
    55   : public IntegralConstant<bool, IsIntegral<T>::value && !IsSigned<T>::value>
    55   : public IntegralConstant<bool, IsIntegral<T>::value && !IsSigned<T>::value>
    56 {};
    56 {};
    57 
    57 
    58 #endif // SHARE_VM_METAPROGRAMMING_ISINTEGRAL_HPP
    58 #endif // SHARE_METAPROGRAMMING_ISINTEGRAL_HPP