OpenVPN 3 Core Library
Loading...
Searching...
No Matches
arraysize.hpp
Go to the documentation of this file.
1
// OpenVPN -- An application to securely tunnel IP networks
2
// over a single port, with support for SSL/TLS-based
3
// session authentication and key exchange,
4
// packet encryption, packet authentication, and
5
// packet compression.
6
//
7
// Copyright (C) 2012- OpenVPN Inc.
8
//
9
// SPDX-License-Identifier: MPL-2.0 OR AGPL-3.0-only WITH openvpn3-openssl-exception
10
//
11
12
#ifndef OPENVPN_COMMON_ARRAYSIZE_H
13
#define OPENVPN_COMMON_ARRAYSIZE_H
14
15
#include <cstddef>
// defines size_t
16
17
namespace
openvpn
{
18
template
<
typename
T, std::
size_t
N>
19
constexpr
std::size_t
array_size
(T (&)[N])
20
{
21
return
N;
22
}
23
}
// namespace openvpn
24
25
#endif
openvpn
Support deferred server-side state creation when client connects.
Definition
ovpncli.cpp:95
openvpn::array_size
constexpr std::size_t array_size(T(&)[N])
Definition
arraysize.hpp:19
openvpn
common
arraysize.hpp
Generated by
1.9.8