DocWire SDK
DocWire SDK: Award-winning modern data processing in C++20. SourceForge Community Choice & Microsoft support. AI-driven processing. Supports nearly 100 data formats, including email boxes and OCR. Boost efficiency in text extraction, web data extraction, data mining, document analysis. Offline processing possible for security and confidentiality
strong_type.h
1 /*********************************************************************************************************************************************/
2 /* DocWire SDK: Award-winning modern data processing in C++20. SourceForge
3  * Community Choice & Microsoft support. AI-driven processing. */
4 /* Supports nearly 100 data formats, including email boxes and OCR. Boost
5  * efficiency in text extraction, web data extraction, data mining, */
6 /* document analysis. Offline processing possible for security and
7  * confidentiality */
8 /* */
9 /* Copyright (c) SILVERCODERS Ltd, http://silvercoders.com */
10 /* Project homepage: https://github.com/docwire/docwire */
11 /* */
12 /* SPDX-License-Identifier: GPL-2.0-only OR LicenseRef-DocWire-Commercial */
13 
14 #ifndef DOCWIRE_STRONG_TYPE_H
15 #define DOCWIRE_STRONG_TYPE_H
16 
17 #include <utility>
18 namespace docwire
19 {
20 template <typename T, typename Tag> class strong_type
21 {
22  public:
23  using value_type = T;
24 
25  explicit constexpr strong_type(T v) noexcept : value_(std::move(v)) {}
26 
27  constexpr T get() const noexcept { return value_; }
28 
29  private:
30  T value_;
31 };
32 
33 } // namespace docwire
34 
35 #endif
The main namespace for the DocWire SDK.
Definition: ai_elements.h:19