/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef INCLUDED_O3TL_UNDERLYINGENUMVALUE_HXX #define INCLUDED_O3TL_UNDERLYINGENUMVALUE_HXX #include #include namespace o3tl { // For a value e of an enumeration type T, return the corresponding value of T's underlying type: template constexpr std::underlying_type_t underlyingEnumValue(T e) { return static_cast>(e); } } #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ ropia/zeta-7-3 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2018-01-04 12:06:32 +0000
committerAndras Timar <andras.timar@collabora.com>2018-01-04 12:06:32 +0000
commita91d2d227c3fd135089a44b902a5c3e34cc08ed8 (patch)
treed6d4422681f37055525c28af2fd943567f694def /bin/find-unusedheaders.pl
parent530f163eee03fffe60f2c2a6413441693f682496 (diff)
Bump version to 5.3-27 cd-5.3-27
Change-Id: Ia883bbcc567c142a7a2be29e2dfb565c03babced