summaryrefslogtreecommitdiffstats
path: root/ml/dlib/dlib/smart_pointers/scoped_ptr.h
blob: dd890f3302cf85aad4de2e8e9773f4af318835d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef DLIB_SCOPED_PTr_H_
#define DLIB_SCOPED_PTr_H_ 

#include <memory>

namespace dlib {
  // Template alias for compatibility with clients using old dlib::scoped_ptr
  // Old scoped_ptr implementation is removed completely
  // This alias may fail in some reference deduction cases
  
  template <class T, class Deleter = std::default_delete<T> >
  using scoped_ptr = std::unique_ptr<T, Deleter>;

}

#endif