<commit_before>#ifndef ITHREADPOOLITEMBASE
#define ITHREADPOOLITEMBASE
#include<thread>	//thread::hardware_concurrency
#include<functional>	//function
#include"../../lib/header/tool/CPimpl.hpp"

namespace nThread
{
	struct IThreadPoolItemBase
	{
		using id=std::result_of_t<decltype(std::thread::hardware_concurrency)&()>;
		IThreadPoolItemBase();
		IThreadPoolItemBase(const IThreadPoolItemBase &)=delete;
		IThreadPoolItemBase(IThreadPoolItemBase &&) noexcept;
		id get_id() const noexcept;
		virtual bool is_running() const noexcept=0;
		virtual void wait() const=0;
		IThreadPoolItemBase& operator=(const IThreadPoolItemBase &)=delete;
		IThreadPoolItemBase& operator=(IThreadPoolItemBase &&) noexcept;
		virtual ~IThreadPoolItemBase();
	protected:
		void exec_(const std::function<void()> &);
		void exec_(std::function<void()> &&);
	private:
		struct Impl;
		nTool::CPimpl<Impl> impl_;
	};
}

#endif<commit_msg>reorder code<commit_after>#ifndef ITHREADPOOLITEMBASE
#define ITHREADPOOLITEMBASE
#include<functional>	//function
#include<thread>	//thread::hardware_concurrency
#include"../../lib/header/tool/CPimpl.hpp"

namespace nThread
{
	struct IThreadPoolItemBase
	{
		using id=std::result_of_t<decltype(std::thread::hardware_concurrency)&()>;
		IThreadPoolItemBase();
		IThreadPoolItemBase(const IThreadPoolItemBase &)=delete;
		IThreadPoolItemBase(IThreadPoolItemBase &&) noexcept;
		id get_id() const noexcept;
		virtual bool is_running() const noexcept=0;
		virtual void wait() const=0;
		IThreadPoolItemBase& operator=(const IThreadPoolItemBase &)=delete;
		IThreadPoolItemBase& operator=(IThreadPoolItemBase &&) noexcept;
		virtual ~IThreadPoolItemBase();
	protected:
		void exec_(const std::function<void()> &);
		void exec_(std::function<void()> &&);
	private:
		struct Impl;
		nTool::CPimpl<Impl> impl_;
	};
}

#endif
{'fraction_non_alphanumeric': 0.1331151118385161, 'fraction_numerical': 0.002182214948172395, 'mean_word_length': 7.1875, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '2337634', 'n_tokens_mistral': 657, 'n_tokens_neox': 610, 'n_words': 110}