ModErn Text Analysis
META Enumerates Textual Applications
shim.h
Go to the documentation of this file.
1 
12 #ifndef META_UTIL_SHIM_H_
13 #define META_UTIL_SHIM_H_
14 
15 #include <memory>
16 
17 namespace meta
18 {
19 
20 #ifndef META_HAS_STD_MAKE_UNIQUE
21 
26 template <class T, class... Args>
27 std::unique_ptr<T> make_unique(Args&&... args)
28 {
29  return std::unique_ptr<T>{new T(std::forward<Args>(args)...)};
30 }
31 #else
32 using std::make_unique;
33 #endif
34 }
35 #endif
std::unique_ptr< T > make_unique(Args &&...args)
Constructs a unique ptr in place.
Definition: shim.h:27
The ModErn Text Analysis toolkit is a suite of natural language processing, classification, information retreival, data mining, and other applications of text processing.
Definition: analyzer.h:24