<commit_before>// Copyright <NAME> 2010-2012.
// 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)
// This file is part of HadesMem.
// <http://www.raptorfactor.com/> <<EMAIL>>

#include "hadesmem/module_iterator.hpp"

#include "hadesmem/detail/warning_disable_prefix.hpp"
#include <boost/none.hpp>
#include <boost/assert.hpp>
#include <boost/optional.hpp>
#include "hadesmem/detail/warning_disable_suffix.hpp"

#include "hadesmem/error.hpp"
#include "hadesmem/module.hpp"
#include "hadesmem/process.hpp"

namespace hadesmem
{

namespace detail
{
  struct ModuleIteratorImpl
  {
    ~ModuleIteratorImpl()
    {
      BOOST_VERIFY(CloseHandle(snap_));
    }
    
    Process const* process_;
    HANDLE snap_;
    boost::optional<Module> module_;<commit_msg>* [module_iterator] Added noexcept annotation to destructor of hadesmem::detail::ModuleIteratorImpl.<commit_after>// Copyright <NAME> 2010-2012.
// 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)
// This file is part of HadesMem.
// <http://www.raptorfactor.com/> <<EMAIL>>

#include "hadesmem/module_iterator.hpp"

#include "hadesmem/detail/warning_disable_prefix.hpp"
#include <boost/none.hpp>
#include <boost/assert.hpp>
#include <boost/optional.hpp>
#include "hadesmem/detail/warning_disable_suffix.hpp"

#include "hadesmem/error.hpp"
#include "hadesmem/module.hpp"
#include "hadesmem/process.hpp"

namespace hadesmem
{

namespace detail
{
  struct ModuleIteratorImpl
  {
    ~ModuleIteratorImpl() BOOST_NOEXCEPT
    {
      BOOST_VERIFY(CloseHandle(snap_));
    }
    
    Process const* process_;
    HANDLE snap_;
    boost::optional<Module> module_;
{'fraction_non_alphanumeric': 0.12843029637760703, 'fraction_numerical': 0.015367727771679473, 'mean_word_length': 4.4094955489614245, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '3503550', 'n_tokens_mistral': 629, 'n_tokens_neox': 598, 'n_words': 130}