aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/um/service/include/libservice
diff options
context:
space:
mode:
Diffstat (limited to 'um/service/include/libservice')
-rw-r--r--um/service/include/libservice/device.hpp14
-rw-r--r--um/service/include/libservice/handle.hpp12
-rw-r--r--um/service/include/libservice/service.hpp14
-rw-r--r--um/service/include/libservice/service_handle.hpp14
-rw-r--r--um/service/include/libservice/service_manager.hpp14
5 files changed, 49 insertions, 19 deletions
diff --git a/um/service/include/libservice/device.hpp b/um/service/include/libservice/device.hpp
index ac292c8..f61c59a 100644
--- a/um/service/include/libservice/device.hpp
+++ b/um/service/include/libservice/device.hpp
@@ -63,13 +63,19 @@ namespace libservice
Device(const Device&) = delete;
};
- void swap(Device&, Device&) LIBSERVICE_NOEXCEPT;
+ inline void swap(Device& a, Device& b) LIBSERVICE_NOEXCEPT
+ {
+ a.swap(b);
+ }
}
namespace std
{
template <>
- void swap<libservice::Device>(
- libservice::Device&,
- libservice::Device&) LIBSERVICE_NOEXCEPT;
+ inline void swap<libservice::Device>(
+ libservice::Device& a,
+ libservice::Device& b) LIBSERVICE_NOEXCEPT
+ {
+ a.swap(b);
+ }
}
diff --git a/um/service/include/libservice/handle.hpp b/um/service/include/libservice/handle.hpp
index 5e351d2..abd1d5a 100644
--- a/um/service/include/libservice/handle.hpp
+++ b/um/service/include/libservice/handle.hpp
@@ -65,13 +65,19 @@ namespace libservice
Handle(const Handle&) = delete;
};
- void swap(Handle& a, Handle& b) LIBSERVICE_NOEXCEPT;
+ inline void swap(Handle& a, Handle& b) LIBSERVICE_NOEXCEPT
+ {
+ a.swap(b);
+ }
}
namespace std
{
template <>
- void swap<libservice::Handle>(
+ inline void swap<libservice::Handle>(
libservice::Handle& a,
- libservice::Handle& b) LIBSERVICE_NOEXCEPT;
+ libservice::Handle& b) LIBSERVICE_NOEXCEPT
+ {
+ a.swap(b);
+ }
}
diff --git a/um/service/include/libservice/service.hpp b/um/service/include/libservice/service.hpp
index 089f790..ca01ab4 100644
--- a/um/service/include/libservice/service.hpp
+++ b/um/service/include/libservice/service.hpp
@@ -61,13 +61,19 @@ namespace libservice
Service(const Service&) = delete;
};
- void swap(Service&, Service&) LIBSERVICE_NOEXCEPT;
+ inline void swap(Service& a, Service& b) LIBSERVICE_NOEXCEPT
+ {
+ a.swap(b);
+ }
}
namespace std
{
template <>
- void swap<libservice::Service>(
- libservice::Service&,
- libservice::Service&) LIBSERVICE_NOEXCEPT;
+ inline void swap<libservice::Service>(
+ libservice::Service& a,
+ libservice::Service& b) LIBSERVICE_NOEXCEPT
+ {
+ a.swap(b);
+ }
}
diff --git a/um/service/include/libservice/service_handle.hpp b/um/service/include/libservice/service_handle.hpp
index 2883ff3..52e37f4 100644
--- a/um/service/include/libservice/service_handle.hpp
+++ b/um/service/include/libservice/service_handle.hpp
@@ -64,13 +64,19 @@ namespace libservice
ServiceHandle(const ServiceHandle&) = delete;
};
- void swap(ServiceHandle&, ServiceHandle&) LIBSERVICE_NOEXCEPT;
+ inline void swap(ServiceHandle& a, ServiceHandle& b) LIBSERVICE_NOEXCEPT
+ {
+ a.swap(b);
+ }
}
namespace std
{
template <>
- void swap<libservice::ServiceHandle>(
- libservice::ServiceHandle&,
- libservice::ServiceHandle&) LIBSERVICE_NOEXCEPT;
+ inline void swap<libservice::ServiceHandle>(
+ libservice::ServiceHandle& a,
+ libservice::ServiceHandle& b) LIBSERVICE_NOEXCEPT
+ {
+ a.swap(b);
+ }
}
diff --git a/um/service/include/libservice/service_manager.hpp b/um/service/include/libservice/service_manager.hpp
index 80e6f12..3d4fe3a 100644
--- a/um/service/include/libservice/service_manager.hpp
+++ b/um/service/include/libservice/service_manager.hpp
@@ -51,13 +51,19 @@ namespace libservice
ServiceManager(const ServiceManager&) = delete;
};
- void swap(ServiceManager& a, ServiceManager& b) LIBSERVICE_NOEXCEPT;
+ inline void swap(ServiceManager& a, ServiceManager& b) LIBSERVICE_NOEXCEPT
+ {
+ a.swap(b);
+ }
}
namespace std
{
template <>
- void swap<libservice::ServiceManager>(
- libservice::ServiceManager&,
- libservice::ServiceManager&) LIBSERVICE_NOEXCEPT;
+ inline void swap<libservice::ServiceManager>(
+ libservice::ServiceManager& a,
+ libservice::ServiceManager& b) LIBSERVICE_NOEXCEPT
+ {
+ a.swap(b);
+ }
}