Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tao / Utils / PolicyList_Destroyer.h
blob9e18fd6acbcde04fdc94b69e9bf514fe5a31439b
1 // -*- C++ -*-
2 //=============================================================================
3 /**
4 * @file PolicyList_Destroyer.h
6 * @author Carlos O'Ryan <coryan@atdesk.com>
7 */
8 //=============================================================================
9 #ifndef TAO_UTILS_POLICYLIST_DESTROYER_H
10 #define TAO_UTILS_POLICYLIST_DESTROYER_H
11 #include /**/ "ace/pre.h"
12 #include "tao/Utils/utils_export.h"
14 #include "tao/PolicyC.h"
16 #if !defined (ACE_LACKS_PRAGMA_ONCE)
17 # pragma once
18 #endif /* ACE_LACKS_PRAGMA_ONCE */
20 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
22 namespace TAO
24 namespace Utils
26 /**
27 * @class PolicyList_Destroyer
29 * @brief Automatically destroy all the policies set in a PolicyList
32 class TAO_UTILS_Export PolicyList_Destroyer
33 : public CORBA::PolicyList
35 public:
36 PolicyList_Destroyer(CORBA::ULong length_hint);
37 ~PolicyList_Destroyer() noexcept;
39 } // namespace Utils
40 } // namespace TAO
42 TAO_END_VERSIONED_NAMESPACE_DECL
44 #if defined (__ACE_INLINE__)
45 # include "tao/Utils/PolicyList_Destroyer.inl"
46 #endif /* __ACE_INLINE__ */
48 #include /**/ "ace/post.h"
49 #endif /*TAO_UTILS_POLICYLIST_DESTROYER_H*/