| 792 | } |
| 793 | |
| 794 | inline holder_* holder() noexcept |
| 795 | { |
| 796 | switch (mode_) { |
| 797 | case mode_t::null: |
| 798 | case mode_t::scalar_inplace: |
| 799 | return nullptr; |
| 800 | case mode_t::holder_inplace: |
| 801 | return reinterpret_cast<holder_*>(data_.get_raw()); |
| 802 | case mode_t::holder_pointer: |
| 803 | return data_.get_allocated()->get(); |
| 804 | } |
| 805 | return nullptr; |
| 806 | } |
| 807 | |
| 808 | inline const holder_* holder() const |
| 809 | { |
no test coverage detected