• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

STEllAR-GROUP / hpx / #882

31 Aug 2023 07:44PM UTC coverage: 41.798% (-44.7%) from 86.546%
#882

push

19442 of 46514 relevant lines covered (41.8%)

126375.38 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/libs/core/plugin/include/hpx/plugin/plugin_wrapper.hpp
1
//  Copyright Vladimir Prus 2004.
2
//  Copyright (c) 2005-2022 Hartmut Kaiser
3
//
4
//  SPDX-License-Identifier: BSL-1.0
5
//  Distributed under the Boost Software License, Version 1.0. (See accompanying
6
//  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7

8
#pragma once
9

10
#include <hpx/plugin/config.hpp>
11
#include <hpx/plugin/virtual_constructor.hpp>
12

13
namespace hpx::util::plugin {
14

15
    ///////////////////////////////////////////////////////////////////////////
16
    namespace detail {
17

18
        HPX_CXX_EXPORT struct dll_handle_holder
19
        {
20
            explicit dll_handle_holder(dll_handle dll) noexcept
21
              : m_dll(HPX_MOVE(dll))
22
            {
23
            }
24

25
            ~dll_handle_holder() = default;
×
26

27
        private:
28
            dll_handle m_dll;
29
        };
30
    }    // namespace detail
31

32
    ///////////////////////////////////////////////////////////////////////////
33
    HPX_CXX_EXPORT template <typename Wrapped, typename... Parameters>
34
    struct plugin_wrapper
35
      : public detail::dll_handle_holder
36
      , public Wrapped
37
    {
38
        explicit plugin_wrapper(dll_handle dll, Parameters... parameters)
1,099✔
39
          : detail::dll_handle_holder(HPX_MOVE(dll))
40
          , Wrapped(parameters...)
1,099✔
41
        {
42
        }
32✔
43
    };
44
}    // namespace hpx::util::plugin
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc