Commit 2a05bb3e authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Guarantee inlining of some important functions

parent c9afd8cc
...@@ -164,7 +164,7 @@ public: ...@@ -164,7 +164,7 @@ public:
void reserve(size_t size) const { _checked.reserve(size); } void reserve(size_t size) const { _checked.reserve(size); }
reference operator[](const key_type& v) const reference operator[](const key_type& v) const __attribute__((always_inline))
{ {
typename property_traits<IndexMap>::value_type i = typename property_traits<IndexMap>::value_type i =
get(_checked.index, v); get(_checked.index, v);
......
...@@ -147,7 +147,7 @@ public: ...@@ -147,7 +147,7 @@ public:
: _filtered_property(filtered_property), _invert(invert) {} : _filtered_property(filtered_property), _invert(invert) {}
template <class Descriptor> template <class Descriptor>
inline bool operator() (Descriptor d) const __attribute__((always_inline)) inline bool operator() (Descriptor d) const
{ {
// ignore if masked // ignore if masked
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment