Modernize syntax of enable_if and traits to use _t helpers
authorKevin Boyd <kevin.boyd@uconn.edu>
Fri, 12 Jul 2019 15:50:02 +0000 (11:50 -0400)
committerMark Abraham <mark.j.abraham@gmail.com>
Tue, 23 Jul 2019 05:57:33 +0000 (07:57 +0200)
commit6ca5b0d8085267ad1792ab3ea760a5160f5e6a84
tree8443a9378ba759b4ba66ca5d398ec23fc69a374d
parentc8951db1f0dbbebf891ccc9c3dce9dc0f68c4df5
Modernize syntax of enable_if and traits to use _t helpers

From c++ 14, "typename std::enable_if<something>::type"
can be reduced to
              "std::enable_if_t<something>"

as can traits with ::type

Note that when we switch to C++ 17, a number of traits with
::value can be similarly shorthanded with _v

Change-Id: I92d4502c51ac613fa81f130ed3127c812c4e0a6f
18 files changed:
src/gromacs/ewald/pme_gather.cpp
src/gromacs/gpu_utils/tests/hostallocator.cpp
src/gromacs/math/arrayrefwithpadding.h
src/gromacs/math/tests/arrayrefwithpadding.cpp
src/gromacs/math/vectypes.h
src/gromacs/mdspan/extensions.h
src/gromacs/mdspan/layouts.h
src/gromacs/mdspan/mdspan.h
src/gromacs/simd/simd.h
src/gromacs/simd/simd_memory.h
src/gromacs/simd/tests/simd_memory.cpp
src/gromacs/utility/allocator.h
src/gromacs/utility/any.h
src/gromacs/utility/arrayref.h
src/gromacs/utility/enumerationhelpers.h
src/gromacs/utility/exceptions.h
src/gromacs/utility/tests/arrayref.cpp
src/testutils/mpitest.h