userver: userver/utils/impl/intrusive_link_mode.hpp Source File
Loading...
Searching...
No Matches
intrusive_link_mode.hpp
1#pragma once
2
3#include <boost/intrusive/link_mode.hpp>
4#include <boost/intrusive/options.hpp>
5
6USERVER_NAMESPACE_BEGIN
7
8namespace utils::impl {
9
10using IntrusiveLinkMode = boost::intrusive::link_mode<
11#ifdef NDEBUG
12 boost::intrusive::normal_link
13#else
14 boost::intrusive::safe_link
15#endif
16 >;
17
18} // namespace utils::impl
19
20USERVER_NAMESPACE_END