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/util/time.hpp>
31 #include <ndn-cxx/name.hpp>
32 
33 namespace nlsr {
34 
35 using std::bind;
36 using std::make_shared;
37 using std::shared_ptr;
38 using std::function;
39 
40 const ndn::time::seconds TIME_ALLOWED_FOR_CANONIZATION = ndn::time::seconds(4);
41 
42 template<typename T, typename = void>
44 {
45  static constexpr bool value = false;
46 };
47 
50 template<typename T>
51 struct is_iterator<T, typename std::enable_if<!std::is_same<
52  typename std::iterator_traits<T>::value_type,
53  void>::value>::type>
54 {
55  static constexpr bool value = true;
56 };
57 
58 } // namespace nlsr
59 
60 #endif // NLSR_COMMON_HPP
STL namespace.
Copyright (c) 2014-2019, 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:40
static constexpr bool value
Definition: common.hpp:45