contract ManagedWhitelist is Managed, Whitelist {
  /**
  * @dev add an address to the whitelist
  * @param _operator address
  * @return true if the address was added to the whitelist, false if the address was already in the whitelist
  */
  function addAddressToWhitelist(address _operator) public onlyManager {
    addRole(_operator, ROLE_WHITELISTED);
  }

  /**
  * @dev add addresses to the whitelist
  * @param _operators addresses
  * @return true if at least one address was added to the whitelist,
  * false if all addresses were already in the whitelist
  */
  function addAddressesToWhitelist(address[] _operators) public onlyManager {
    for (uint256 i = 0; i < _operators.length; i++) {
      addAddressToWhitelist(_operators[i]);
    }
  }

  /**
  * @dev remove an address from the whitelist
  * @param _operator address
  * @return true if the address was removed from the whitelist,
  * false if the address wasn't in the whitelist in the first place
  */
  function removeAddressFromWhitelist(address _operator) public onlyManager {
    removeRole(_operator, ROLE_WHITELISTED);
  }

  /**
  * @dev remove addresses from the whitelist
  * @param _operators addresses
  * @return true if at least one address was removed from the whitelist,
  * false if all addresses weren't in the whitelist in the first place
  */
  function removeAddressesFromWhitelist(address[] _operators) public onlyManager {
    for (uint256 i = 0; i < _operators.length; i++) {
      removeAddressFromWhitelist(_operators[i]);
    }
  }
}
/**
 * @title ManagedWhitelist
 * @dev The Whitelist contract has a whitelist of addresses, and provides basic authorization control functions.
 * This simplifies the implementation of "user permissions".
 */
function addAddressesToWhitelist(address[] _operators) public onlyManager {
    for (uint256 i = 0; i < _operators.length; i++) {
      addAddressToWhitelist(_operators[i]);
    }
  }
/**
 * @dev add addresses to the whitelist
 * @param _operators addresses
 * @return true if at least one address was added to the whitelist,
 * false if all addresses were already in the whitelist
 */