common.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
27 #ifndef NLSR_COMMON_HPP
28 #define NLSR_COMMON_HPP
29 
30 #include <ndn-cxx/common.hpp>
31 #include <ndn-cxx/util/time.hpp>
32 #include <ndn-cxx/name.hpp>
33 
34 namespace nlsr {
35 
36 using std::bind;
37 using std::make_shared;
38 using std::shared_ptr;
39 using std::function;
40 
41 const ndn::time::seconds TIME_ALLOWED_FOR_CANONIZATION = ndn::time::seconds(4);
42 
43 template<typename T, typename = void>
45 {
46  static constexpr bool value = false;
47 };
48 
51 template<typename T>
52 struct is_iterator<T, typename std::enable_if<!std::is_same<
53  typename std::iterator_traits<T>::value_type,
54  void>::value>::type>
55 {
56  static constexpr bool value = true;
57 };
58 
59 } // namespace nlsr
60 
61 #endif // NLSR_COMMON_HPP
STL namespace.
Copyright (c) 2014-2017, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
const ndn::time::seconds TIME_ALLOWED_FOR_CANONIZATION
Definition: common.hpp:41
static constexpr bool value
Definition: common.hpp:46