MiKTeX 26.5-next
A scalable TeX distribution
Loading...
Searching...
No Matches
StructChecker.h
1/* miktex/Core/StructChecker.h: -*- C++ -*-
2
3 Copyright (C) 1996-2018 Christian Schenk
4
5 This file is part of the MiKTeX Core Library.
6
7 The MiKTeX Core Library is free software; you can redistribute it
8 and/or modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; either version 2, or
10 (at your option) any later version.
11
12 The MiKTeX Core Library is distributed in the hope that it will be
13 useful, but WITHOUT ANY WARRANTY; without even the implied warranty
14 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with the MiKTeX Core Library; if not, write to the Free
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20 02111-1307, USA. */
21
22#pragma once
23
24#if !defined(B1552F71B2934A77A3D98E19A53D0584)
25#define B1552F71B2934A77A3D98E19A53D0584
26
27#include <miktex/Core/config.h>
28
29#include <cstddef>
30
31MIKTEX_CORE_BEGIN_NAMESPACE;
32
33template<class Derived> struct StructChecker
34{
35private:
36 std::size_t sizeOfStruct = sizeof(Derived);
37
38public:
39 std::size_t GetSizeOfStruct() const
40 {
41 return sizeOfStruct;
42 }
43};
44
45MIKTEX_CORE_END_NAMESPACE;
46
47#endif
Definition StructChecker.h:34