<commit_before>//
//  packaged_task.hpp
//  fibio
//
//  Base on Boost.Fiber at https://github.com/olk/boost-fiber
//
//          Copyright <NAME> 2013.
// Distributed under the Boost Software License, Version 1.0.
//    (See accompanying file LICENSE_1_0.txt or copy at
//          http://www.boost.org/LICENSE_1_0.txt)

#ifndef fibio_fibers_future_packaged_task_hpp
#define fibio_fibers_future_packaged_task_hpp

#include <memory>

#include <boost/config.hpp>
#include <boost/move/move.hpp>
#include <boost/thread/detail/memory.hpp> // boost::allocator_arg_t
#include <boost/throw_exception.hpp>
#include <boost/type_traits/decay.hpp>
#include <boost/type_traits/is_same.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/utility.hpp>

#include <fibio/fibers/exceptions.hpp>
#include <fibio/fibers/future/detail/task_base.hpp>
#include <fibio/fibers/future/detail/task_object.hpp>
#include <fibio/fibers/future/future.hpp>

namespace fibio { namespace fibers {
    template<typename>
    class packaged_task;
    
    template<typename R, typename ...Args>
    class packaged_task<R(Args...)> {
        typedef packaged_task<R(Args...)> this_type;
        typedef typename detail::task_base<R, Args...>::ptr_t ptr_t;
        
        bool obtained_;
        ptr_t task_;
        <commit_msg>uninitialized member<commit_after>//
//  packaged_task.hpp
//  fibio
//
//  Base on Boost.Fiber at https://github.com/olk/boost-fiber
//
//          Copyright <NAME> 2013.
// Distributed under the Boost Software License, Version 1.0.
//    (See accompanying file LICENSE_1_0.txt or copy at
//          http://www.boost.org/LICENSE_1_0.txt)

#ifndef fibio_fibers_future_packaged_task_hpp
#define fibio_fibers_future_packaged_task_hpp

#include <memory>

#include <boost/config.hpp>
#include <boost/move/move.hpp>
#include <boost/thread/detail/memory.hpp> // boost::allocator_arg_t
#include <boost/throw_exception.hpp>
#include <boost/type_traits/decay.hpp>
#include <boost/type_traits/is_same.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/utility.hpp>

#include <fibio/fibers/exceptions.hpp>
#include <fibio/fibers/future/detail/task_base.hpp>
#include <fibio/fibers/future/detail/task_object.hpp>
#include <fibio/fibers/future/future.hpp>

namespace fibio { namespace fibers {
    template<typename>
    class packaged_task;
    
    template<typename R, typename ...Args>
    class packaged_task<R(Args...)> {
        typedef packaged_task<R(Args...)> this_type;
        typedef typename detail::task_base<R, Args...>::ptr_t ptr_t;
        
        bool obtained_=false;
        ptr_t task_;
        
{'fraction_non_alphanumeric': 0.13183034008406572, 'fraction_numerical': 0.007642338555598013, 'mean_word_length': 3.5609756097560976, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3739427', 'n_tokens_mistral': 936, 'n_tokens_neox': 886, 'n_words': 167}