joque
task orchestration library
joque::job_ptr Struct Reference

Custom unique_ptr wrapper that simplifies syntax of tasks. More...

#include <job.hpp>

+ Inheritance diagram for joque::job_ptr:
+ Collaboration diagram for joque::job_ptr:

Public Member Functions

 job_ptr ()=default
 
template<typename T >
 job_ptr (T &&item)
 
 job_ptr (const job_ptr &)=delete
 
job_ptroperator= (const job_ptr &)=delete
 
 job_ptr (job_ptr &&) noexcept=default
 
job_ptroperator= (job_ptr &&) noexcept=default
 

Detailed Description

Custom unique_ptr wrapper that simplifies syntax of tasks.

Allows writing .job = <expr?> in instantiation of new task as long as expr representing something convertible to valid job<T>.

Constructor & Destructor Documentation

◆ job_ptr() [1/4]

joque::job_ptr::job_ptr ( )
default

◆ job_ptr() [2/4]

template<typename T >
joque::job_ptr::job_ptr ( T &&  item)
inline

◆ job_ptr() [3/4]

joque::job_ptr::job_ptr ( const job_ptr )
delete

◆ job_ptr() [4/4]

joque::job_ptr::job_ptr ( job_ptr &&  )
defaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

job_ptr& joque::job_ptr::operator= ( const job_ptr )
delete

◆ operator=() [2/2]

job_ptr& joque::job_ptr::operator= ( job_ptr &&  )
defaultnoexcept

The documentation for this struct was generated from the following file: